#169
No icon
An empty state without an icon, showing a title, a description and a Create item button with a Plus icon.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "No icon" pattern (@codeatlasdev/ui demo #169, layout/empty-state) in my app.
Call get_demo({ ids: ["#169"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Simple empty lists where an icon adds no meaning and a single create action is enough.
Keep these library parts, with the props and tokens the demo uses:
- EmptyState, Button from "@codeatlasdev/ui"
Behaviour to keep:
- `<EmptyState title="Nothing here yet" description="Create your first item to get started.">` is passed no icon
- `{#snippet actions()}` holds `<Button variant="filled" size="sm">`
- Button has `{#snippet leading()}<Plus size={14} />{/snippet}` and the label Create item
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- EmptyState
@codeatlasdev/ui - Button
@codeatlasdev/ui
How it is built
- `<EmptyState title="Nothing here yet" description="Create your first item to get started.">` is passed no icon
- `{#snippet actions()}` holds `<Button variant="filled" size="sm">`
- Button has `{#snippet leading()}<Plus size={14} />{/snippet}` and the label Create item
Related
Loading source.