Component packs › Dials › Shutter Button

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.

Shutter Button props

PropTypeDefaultDescription
photostringYour own photo URL for the viewfinder.
shotsnumber
theme'dark' | 'light'
soundboolean
hapticsboolean
autoplayboolean
onShot(count: number) => void

Methods on the ref

Use it in React

import ShutterButton from './ShutterButton';

<ShutterButton />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Dials

Good for: Knobs and dials.