Component packs › Baize › Spin Picker
Drag the chalk mark on the cue ball face; a small table traces the cue ball path and replays the shot with follow, draw or side.
Spin Picker is a 2D picker 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: 2D slider on a sphere, path traced ahead, replayed shot.
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 |
|---|---|---|---|
value | SpinPickerValue | ||
width | number | 380 | Width in px. Default 380. |
dark | boolean | ||
onChange | (v: SpinPickerValue) => void | ||
autoplay | number | false | Showcase mode: tries a new strike point every N ms while visible. |
value: SpinPickerValuedestroy(): voidimport SpinPicker from './SpinPicker';
<SpinPicker />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.