Component
EmptyState
Communicates an empty view with an icon, message, and next-step actions.
Install
Run the CLI to copy the source into your project.
pnpm dlx @stalk-ui/cli add @stalk-ui/empty-stateExamples
Live previews render through the docs app's PandaCSS codegen.
<EmptyState.Root> <EmptyState.Icon> <Inbox /> </EmptyState.Icon> <EmptyState.Title>No devices found</EmptyState.Title> <EmptyState.Description>Try widening the date range or clearing filters.</EmptyState.Description> <EmptyState.Actions> <Button size="sm">Clear filters</Button> </EmptyState.Actions> </EmptyState.Root>
Props
Public component props extracted from the source TypeScript types.
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| `size` | `EmptyStateSize` | No | - | - |
Variants
Variant axes exposed by the underlying PandaCSS recipe or slot recipe.
| Variant | Values |
|---|---|
| `size` | `sm`, `md` |
Registry
Files this component contributes to your registry install.
- Manifest: `/r/empty-state.json`
- Recipe: `emptyState`
- Files: `src/components/ui/empty-state.tsx`