Component packs › Plunger › Plunger Refresh

Plunger Refresh

Pull the list and the plunger comes with it; let go and the ball fires round the orbit while the refresh runs.

Plunger Refresh is a pull to refresh 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: spring follows the pull, ball on an SVG orbit, keyboard refresh button.

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.

Plunger Refresh props

PropTypeDefaultDescription
rowsPlungerRefreshRow[]
onRefresh() => Promise<PlungerRefreshRow[] | void> | PlungerRefreshRow[] | voidwaits 1.6 s and adds a sample rowYour refresh. Resolve with new rows to put on top. Default: waits 1.6 s and adds a sample row.
widthnumber360Width in px. Default 360.
darkboolean
autoplaynumber | falseShowcase mode: pulls and fires every N ms while visible.

Methods on the ref

Use it in React

import PlungerRefresh from './PlungerRefresh';

<PlungerRefresh />

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

More in Plunger

Good for: Skeuomorphic UI.