Empty
Empty states with media, copy and a clear next step.
No projects yet
You have not created any projects. Create your first one to get started.
Installation
pnpm dlx nachui add emptyAnatomy
Composition
Use the following composition to build an
Empty:Variants
Outline
A dashed border frames the empty state, useful inside dense layouts where the blank area needs an edge.
No results
Nothing matched your search. Try a different term or clear the filters.
API Reference
Empty
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'outline' | 'card' | 'default' | Frame around the state: dashed border or a card |
className | string | - | Additional CSS classes |
Empty.Media
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'icon' | 'default' | icon wraps the child in a muted square tile |
className | string | - | Additional CSS classes |
Empty.Title
| Prop | Type | Default | Description |
|---|---|---|---|
as | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h3' | Heading level |
className | string | - | Additional CSS classes |
Empty.Header, Empty.Description, Empty.Content
Layout wrappers for the copy and the actions. Each accepts
className.Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.