Skip to content

Rotary Dial

Code entry with an old rotary telephone dial: drag from the finger hole to the stop and it springs back, with clicks.

Plan
Pro · commercial license
Dependencies
React only
Props
8 (6 adjustable)

Included in Pro and Lifetime. See pricing

1234567890CODE· · · ·

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

Props

PropTypeDefaultDescription
lengthnumber4Number of digits in the code.
soundbooleantrueSynthesized clicks and spring sound (only after a user interaction).
secretstring""The correct code: if set, a green or red light signals the result when complete.
autobooleanfalseDials an example code on its own when nobody touches it.
sizenumber300Dial diameter, in px.
labelstring"CODE"Text printed on the center card.
onChange(code: string) => voidundefinedCalled every time the dialed code changes.
onComplete(code: string) => voidundefinedCalled when the last digit is dialed.

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 Rotary Dial

npx shadcn@latest add @furin-pro/rotary-dial

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

  • A safe's combination dial: turn it by dragging, each number registers when you hold still on it, and when you get it right the door swings open with a clack.

    Objects

  • A record sleeve from which a vinyl slides out, with grooves and anisotropic reflection; it spins on its own, and dragging across it scratches it: it slows, reverses and returns to speed, with optional synthesized scratch sound.

    Objects

  • A paper envelope with an embossed wax seal (real lighting with SVG filters): on click the wax breaks into fragments that roll across the table, the flap opens in 3D and the letter (children) slides out.

    Objects