Component packs › Baize › Rack Loader

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.

Rack Loader props

PropTypeDefaultDescription
labelstringWhat is loading, shown under the table and read to screen readers.
widthnumber320Width in px. Default 320.
darkboolean

Methods on the ref

Use it in React

import RackLoader from './RackLoader';

<RackLoader />

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

More in Baize

Good for: Skeuomorphic UI.