Empty
Presentational empty-state parts in three sizes (inline, panel, page): media, title, description and actions.
Example
No tasks yet
Tasks you or an agent create show up here.
empty-demo.tsxCopy code
Installation
Copy code
npm packages
class-variance-authority@0.7.1Usage
ImportCopy code
API reference
Empty
| Prop | Type | Default |
|---|---|---|
size | "inline" | "panel" | "page" | "panel" |
Also takes <div> attributes and render.
EmptyMedia
| Prop | Type | Default |
|---|---|---|
variant | "default" | "icon" | "default" |
Also takes <div> attributes and render.
Other exports
EmptyContentEmptyDescriptionEmptyHeaderemptyMediaVariantsEmptyTitleemptyVariantstype EmptySizeAccessibility
- Pick the title's element with render so it fits the heading outline.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.