Component packs › Plunger › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
rows | PlungerRefreshRow[] | ||
onRefresh | () => Promise<PlungerRefreshRow[] | void> | PlungerRefreshRow[] | void | waits 1.6 s and adds a sample row | Your refresh. Resolve with new rows to put on top. Default: waits 1.6 s and adds a sample row. |
width | number | 360 | Width in px. Default 360. |
dark | boolean | ||
autoplay | number | false | Showcase mode: pulls and fires every N ms while visible. |
refresh(): Promise<void>destroy(): voidimport PlungerRefresh from './PlungerRefresh';
<PlungerRefresh />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.