Component packs › Seek › Recent Searches
Recent searches drop in one by one, removed rows close up, and a picked one types itself into the box before it runs.
Recent Searches is a search history from Seek, a component pack with 8 components: Search and command palette components that show exactly what matched. Price: free.
Built with: typewriter fill, collapse rows, localStorage.
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/recent-searches.json
| Prop | Type | Default | Description |
|---|---|---|---|
recent | string[] | ||
trending | string[] | ||
storageKey | string | Keep recents in localStorage under this key. | |
onSearch | (q: string) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: opens, removes and picks until touched. |
destroy(): voidimport RecentSearches from './RecentSearches';
<RecentSearches />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Search and command palette.