Component packs › Seek › Spotlight Expand
The search icon stretches into the whole nav bar on one spring while the links slide out of its way and suggestions drop in.
Spotlight Expand is an expanding search from Seek, a component pack with 8 components: Search and command palette components that show exactly what matched. Price: free.
Built with: one-spring morph, staggered links, Escape.
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/spotlight-expand.json
| Prop | Type | Default | Description |
|---|---|---|---|
links | string[] | ||
suggestions | string[] | ||
onSearch | (q: string) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: opens, types and closes until touched. |
toggle(v?: boolean): voiddestroy(): voidimport SpotlightExpand from './SpotlightExpand';
<SpotlightExpand />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Search and command palette.