Component packs › Baize › Rack Loader
A full rack is broken with real collisions, some balls drop, then every ball rolls home into the triangle and it breaks again.
Rack Loader is a loader from Baize, a component pack with 6 billiards components: Controls played on a pool table: balls that roll, knock, bank off cushions and drop into pockets. Price: $2 for the whole pack.
Built with: 15-ball break, pocketed balls come back, never the same twice.
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 |
|---|---|---|---|
label | string | What is loading, shown under the table and read to screen readers. | |
width | number | 320 | Width in px. Default 320. |
dark | boolean |
stop(): voidstart(): voiddestroy(): voidimport RackLoader from './RackLoader';
<RackLoader />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.