#170
No results
A no-results state for search with a magnifier icon and a Clear filters button.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "No results" pattern (@codeatlasdev/ui demo #170, layout/empty-state) in my app.
Call get_demo({ ids: ["#170"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Search and filter screens where the query matched nothing and the user should reset it.
Keep these library parts, with the props and tokens the demo uses:
- EmptyState, Button from "@codeatlasdev/ui"
Behaviour to keep:
- `<EmptyState icon={Search} title="No results found" description="Try adjusting your search terms or filters.">`
- `{#snippet actions()}` holds `<Button variant="outlined" size="sm">Clear filters</Button>`
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 icon={Search} title="No results found" description="Try adjusting your search terms or filters.">`
- `{#snippet actions()}` holds `<Button variant="outlined" size="sm">Clear filters</Button>`
Related
Loading source.