Component packs › Plunger › Flipper Toggle

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.

Flipper Toggle props

PropTypeDefaultDescription
checkedboolean
labelstring
disabledboolean
darkboolean
onChange(checked: boolean) => void
autoplaynumber | falseShowcase mode: flips itself every N ms while visible.

Methods on the ref

Use it in React

import FlipperToggle from './FlipperToggle';

<FlipperToggle />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Plunger

Good for: Skeuomorphic UI.