Skip to content

Metal Toggle

A physical toggle-switch lever with a satisfying click.

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

Included in Pro and Lifetime. See pricing

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

Props

PropTypeDefaultDescription
checkedbooleanfalseOn state (controlled mode).
defaultCheckedbooleanfalseInitial state when not controlled from outside.
onChange(checked: boolean) => voidundefinedCalled when the lever changes position.
labelstring"Power"Label engraved at the top of the plate.
onLabelstring"ON"Text for the on position.
offLabelstring"OFF"Text for the off position.
tone"graphite" | "silver""graphite"Finish of the plate.
ledColorstring"#ffb13b"Color of the indicator light that turns on with the lever.
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 Metal Toggle

npx shadcn@latest add @furin-pro/metal-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 button that fires physical confetti: paper pieces that spin in 3D, fall with air drag and flutter.

    Buttons

  • A copy button where the icon outline morphs into a checkmark with a stroke and spring morph. It really copies the text with navigator.clipboard (with a fallback).

    Buttons

  • A button that narrows into a progress bar, advances at an uneven pace like a real network, and ends in a checkmark. With href, it really downloads the file.

    Buttons