Component packs › Detour › No Results
An empty car park with one car circling the aisle, and a search box to try again.
No Results is an empty state from Detour, a component pack with 6 error and empty pages: Error and empty pages, each a small live street seen from above with one honest way forward. Price: $2 for the whole pack.
Built with: search form, suggested shorter query, braking at corners.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
query | string | ||
suggestion | string | A shorter search to suggest. | |
onSearch | (query: string) => void | ||
onClear | () => void | ||
width | number | 420 | Width in px. Default 420. |
dark | boolean |
setQuery(q: string): voiddestroy(): voidimport NoResults from './NoResults';
<NoResults />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: 404 and empty states.