Key fob
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-key-fobAbout this component
A car key fob with a LOCK button and the car behind it: press and the fob LED blinks, the car flashes its indicators twice and folds its mirrors in; press again to unlock, one flash and the mirrors swing back out.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Click
- State change
- Glow
Techniques4
- Keyframes
- CSS transition
- SVG
- clip-path
Accessibility
Keyboard and screen readers
A native button whose label says what the next press does (lock or unlock the car) with aria-pressed; the car and fob body are aria-hidden.
Reduced motion
The lamps and mirrors switch without animating.
Use it in anything you build, commercial and client work included. Licence