Component packs › Plunger › Flipper Toggle
Switching on snaps the flipper up and flicks the ball into the air; it falls back and rolls into the cradle.
Flipper Toggle is a toggle from Plunger, a component pack with 6 pinball components: Controls built from pinball parts: a plunger, a flipper, pop bumpers, drop targets, a ramp and score reels. Price: $2 for the whole pack.
Built with: moving-segment collisions, gravity and restitution, role switch.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | ||
label | string | ||
disabled | boolean | ||
dark | boolean | ||
onChange | (checked: boolean) => void | ||
autoplay | number | false | Showcase mode: flips itself every N ms while visible. |
readonly checked: booleansetChecked(checked: boolean, silent?: boolean): voiddestroy(): voidimport FlipperToggle from './FlipperToggle';
<FlipperToggle />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.