Component packs › Dials › Shutter Button
Half-press and the focus brackets close in on a real photo; keep holding and the shutter blinds snap and the counter rolls, hold longer for a burst.
Shutter Button is a two-stage button from Dials, a component pack with 8 components: Physical controls that click: dials, wheels, rings and switches with real detents. Price: $2 for the whole pack.
Built with: two stages, shutter blinds, burst.
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 |
|---|---|---|---|
photo | string | Your own photo URL for the viewfinder. | |
shots | number | ||
theme | 'dark' | 'light' | ||
sound | boolean | ||
haptics | boolean | ||
autoplay | boolean | ||
onShot | (count: number) => void |
fire(): voiddestroy(): voidimport ShutterButton from './ShutterButton';
<ShutterButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Knobs and dials.