Skip to content

Safe Dial

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.

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

Included in Pro and Lifetime. See pricing

SAFE
05101520253035404550556065707580859095

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

Props

PropTypeDefaultDescription
childrenReactNode""Content stored inside the safe (gold bars by default).
codenumber[]"[24, 71, 38]"Combination: numbers from 0 to 99 that must be dialed and held still for a moment.
soundbooleantrueSynthesized clicks, bolt and door thud (only after an interaction).
autobooleanfalseDials the combination on its own when nobody touches it, opens and closes again.
sizenumber270Side length of the door, in px.
labelstring"SAFE"Text engraved on the door plate.
onOpen() => voidundefinedCalled when the combination is correct and the door opens.
onClose() => voidundefinedCalled when the door closes again.

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

npx shadcn@latest add @furin-pro/safe-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 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

  • A metal zipper with real teeth on twill fabric: drag the pull and the fabric opens in a V revealing your content, with a shadow on the lining and a pull that swings like a pendulum.

    Objects