EmptyState
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.
EmptyState preview
No projects yet
Installation
npm install @stackunseen/uiimport { EmptyState } from '@stackunseen/ui';@stackunseen/ui/styles.cssParts
For the common case, pass title, description, icon and actions as props. For full control, compose the parts.
How the parts fit together
<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>EmptyStateThe container. Props cover the common case.
EmptyStateIconAn optional decorative icon.
EmptyStateTitleSays what is missing.
EmptyStateDescriptionWhy it is empty, or how to fill it.
EmptyStateActionsThe 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/IconAll 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
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