Component packs › Seek › Search States
Skeletons shimmer and turn into results row by row; no results offers a "did you mean" fix; an error keeps the query and offers a retry.
Search States is a loading and empty from Seek, a component pack with 8 components: Search and command palette components that show exactly what matched. Price: free.
Built with: skeleton morph, did you mean, aria-busy.
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.
Install with the shadcn CLI: npx shadcn@latest add https://motionmart.store/r/search-states.json
| Prop | Type | Default | Description |
|---|---|---|---|
search | (q: string) => Promise<string[]> | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: runs through loading, results, empty and error until touched. |
destroy(): voidimport SearchStates from './SearchStates';
<SearchStates />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Search and command palette.