Component packs › Dials › Aperture Ring
Turn the knurled lens ring and it clicks from stop to stop while a seven-blade iris closes and opens with the f-number.
Aperture Ring is a ring dial 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: seven-blade iris, angle drag, detents.
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 |
|---|---|---|---|
value | number | 2, f/2.8) | Index into the stops (default 2, f/2.8). |
stops | number[] | ||
theme | 'dark' | 'light' | ||
sound | boolean | ||
haptics | boolean | ||
autoplay | boolean | ||
onChange | (f: number) => void |
readonly value: numberset(i: number): voiddestroy(): voidimport ApertureRing from './ApertureRing';
<ApertureRing />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Knobs and dials.