Playground
No services yet
Create your first one to get started.
Primary action
Secondary action
Default
No services yet
Services you deploy will show up here. Create your first one to get started.
Without actions
No results found
Try adjusting your filters or search terms.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | ReactNode | generic empty-box icon | Custom icon/illustration. Falls back to a built-in icon when omitted. |
| title | string | — | Required heading. |
| description | string | — | Optional supporting copy. |
| primaryAction | { label: string; onClick?: () => void } | — | Rendered as a primary Button. |
| secondaryAction | { label: string; onClick?: () => void } | — | Rendered as a ghost Button, to the left of primary. |
| ...rest | HTMLAttributes<HTMLDivElement> | — | className, aria-*, and any other native div prop. |
Usage Guidelines
When to use
- Use whenever a list, table, or search can legitimately return zero results — give users a next action, not a blank void.
When not to use
- Don't show it during a loading state — that's a skeleton's job, not Empty State's.
- Don't omit the primary action when one clearly exists — an empty state without a way forward is a dead end.