Component packs › Plunger › Bumper Buttons

Bumper Buttons

Pop bumpers as action buttons: each press kicks, and a loose steel ball is fired away whenever it touches one.

Bumper Buttons is a buttons 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: contact kicks, counts and toggles, top-view chrome and plastic.

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.

Bumper Buttons props

PropTypeDefaultDescription
itemsBumperButtonsItem[]
widthnumber360Width in px. Default 360.
darkboolean
onPress(index: number, state: { pressed: boolean; count?: number }) => void
autoplaynumber | falseShowcase mode: presses a bumper every N ms while visible.

Methods on the ref

Use it in React

import BumperButtons from './BumperButtons';

<BumperButtons />

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

More in Plunger

Good for: Skeuomorphic UI.