Skip to content

Aperture Button

A lens-style button with metal diaphragm blades that close and open on a spring. The ring shows the f-number.

Plan
Pro · commercial license
Dependencies
React only
Props
9 (7 adjustable)

Included in Pro and Lifetime. See pricing

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenReactNode"Aperture"Button text, shown below the lens.
bladesnumber7Number of diaphragm blades.
trigger"click" | "hover" | "press""click"How it closes: toggles on click, closes while hovered, or closes only while pressed.
defaultClosedbooleanfalseIn click mode, starts closed.
sizenumber230Lens diameter, in px.
lightstring"#a9dcff"Color of the light visible through the opening.
autobooleanfalseCycles through apertures from f/1.4 to f/22 on its own while nobody is touching it.
onToggle(closed: boolean) => voidundefinedCalled on toggle (true = closed).
disabledbooleanfalseDisables the button.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Aperture Button

npx shadcn@latest add @furin-pro/aperture-button

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • Progress as a cassette tape: the tape moves from one reel to the other with each spool's diameter really changing, a plastic window with reflections and a counter. Drag to fast-forward or rewind.

    Objects

  • A switch that flips a 3D metal coin: it spins in the air, bounces on the table and lands showing the other face.

    Objects

  • A glass and wood hourglass: the grains really fall, the pile grows with its slope, and a click flips it.

    Objects