Component packs › Seek › Search States

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

Search States props

PropTypeDefaultDescription
search(q: string) => Promise<string[]>
theme'dark' | 'light'
autoplaybooleanShowcase mode: runs through loading, results, empty and error until touched.

Methods on the ref

Use it in React

import SearchStates from './SearchStates';

<SearchStates />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Seek

Good for: Search and command palette.