Skip to content

Coin Toggle

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

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

Included in Pro and Lifetime. See pricing

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

Props

PropTypeDefaultDescription
checkedbooleantrueState of the switch (controlled): face A = on.
defaultCheckedbooleantrueInitial state when not controlled from outside.
onChange(checked: boolean) => voidundefinedCalled when the coin lands showing the other face.
labels[string, string]"[\"ON\", \"OFF\"]"Texts engraved on the faces: [on, off].
metal"gold" | "silver" | "bronze""gold"Metal of the coin.
sizenumber170Coin diameter, in px.
soundbooleanfalseSynthesized clink when it lands (only after a click).
autobooleanfalseFlips the coin on its own every so often while nobody touches it.
disabledbooleanfalseDisables the switch.

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 Coin Toggle

npx shadcn@latest add @furin-pro/coin-toggle

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 glass and wood hourglass: the grains really fall, the pile grows with its slope, and a click flips it.

    Objects

  • A true lenticular print: hundreds of cylindrical lenses interleave 2 to 3 images and each shows depending on the angle. As you tilt it with the cursor you see the flip band, per-lens shine and the transparent plastic.

    Objects

  • A 3D printed-cardboard matchbox with a striker strip on the side: the drawer springs open on hover or click, revealing matches and your content on a small card.

    Objects