Component packs › Fidget › Search Icon
The handle is two blades: the lens folds away and the blades slide to the centre and open like scissors into a cross.
Search Icon is an icon toggle from Fidget, a component pack with 10 animated icons: Animated icons with working parts: hinges, pendulums, springs and gravity. Price: $2 for the whole pack.
Built with: scissor pin, lens collapse, staged by physics.
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 |
|---|---|---|---|
open | boolean | false (search) | Shows the close cross. Default false (search). |
disabled | boolean | ||
labels | { open: string; close: string } | Accessible names for both states. | |
size | number | Scale factor. 1 = 56 px button. | |
onChange | (open: boolean) => void | ||
autoplay | number | false | Showcase mode: toggles itself every N ms while visible. |
readonly open: booleansetOpen(open: boolean, silent?: boolean): voiddestroy(): voidimport SearchIcon from './SearchIcon';
<SearchIcon />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Animated icons.