Component packs › Baize › Spin Picker

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.

Spin Picker props

PropTypeDefaultDescription
valueSpinPickerValue
widthnumber380Width in px. Default 380.
darkboolean
onChange(v: SpinPickerValue) => void
autoplaynumber | falseShowcase mode: tries a new strike point every N ms while visible.

Methods on the ref

Use it in React

import SpinPicker from './SpinPicker';

<SpinPicker />

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

More in Baize

Good for: Skeuomorphic UI.