No search results
The failed-query state, with the query echoed and the active filters shown.
Live preview
Source
This exact file renders the preview above.
components/blocks/sections/empty/no-results.tsx
components/ui/empty-state.tsx
components/ui/badge.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
A different problem from 'nothing here yet'. Echoing the query makes a typo visible, showing the filters makes an over-narrowed search obvious, and the suggestions are links rather than advice.
- Always echo the query. 'No results' without it is unactionable.
- Show the filters that are narrowing the result, with a way to clear them.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Query echo
- Active filter chips
- Real suggestion links
Accessibility
- Query in the heading
- The failed term is part of the announced title.
- Real links
- Suggestions navigate rather than only re-running a client-side filter.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All sectionsEmpty state
The three-part empty state — what is missing, why, and the single most likely next action.
starter4 variantsFiltered to nothing
The data exists — the filters exclude it, and the state says so.
starter3 variantsSearch-led hero
A large search field with seeded suggestions and live, announced results.
intermediate4 variants