EmptyState

Markdown

Explains why there’s nothing here and what to do next.

Use it for
Explaining why there is nothing here and what to do next.
Not for
Errors or loading. Try Alert or Skeleton.

EmptyState preview

No projects yet

Add a project to start your collection.

Installation

npm install @stackunseen/ui
import { EmptyState } from '@stackunseen/ui';
Styles: @stackunseen/ui/styles.css

Parts

For the common case, pass title, description, icon and actions as props. For full control, compose the parts.

How the parts fit together

tsx
<EmptyState>
  <EmptyStateIcon>{icon}</EmptyStateIcon>
  <EmptyStateTitle>No projects yet</EmptyStateTitle>
  <EmptyStateDescription>Your projects will appear here when you add one.</EmptyStateDescription>
  <EmptyStateActions>
    <Button>New project</Button>
  </EmptyStateActions>
</EmptyState>
  1. EmptyState

    The container. Props cover the common case.

    Propsalign title description icon actions titleAs

  2. EmptyStateIcon

    An optional decorative icon.

  3. EmptyStateTitle

    Says what is missing.

    Propsas

  4. EmptyStateDescription

    Why it is empty, or how to fill it.

  5. EmptyStateActions

    The way forward, such as New project or Clear filters.

Usage and props

Say whether there’s no content yet, no results for a filter, or no access, and offer the action that fixes that reason.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

align?: start | center · native div props · EmptyStateTitle/Description/Actions/Icon
How state and callbacks work
All props

Loading…

For your coding agent

Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.

Contract
align?: start | center · native div props · EmptyStateTitle/Description/Actions/Icon
Keeps honest
Say whether there’s no content yet, no results for a filter, or no access, and offer the action that fixes that reason.
MCP
read_component "EmptyState" on the docs endpoint
Open the Markdown file

Keyboard and customization

Keyboard

The heading and description remain ordinary content. A recovery action follows native button behavior.

Customization

Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio