Component packs › Baize › Cue Button
Hold to draw the cue back, let go to strike: the object ball is cut into the corner pocket and your action runs as it drops.
Cue Button is a button 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: hold for power, ghost-ball aim, rolling number spots.
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 | ||
done | string | Shown after the ball drops. | |
action | () => unknown | Runs when the object ball drops into the pocket. | |
width | number | 340 | Width in px. Default 340. |
dark | boolean | ||
autoplay | number | false | Showcase mode: plays a shot every N ms while visible. |
shoot(power?: number): voiddestroy(): voidimport CueButton from './CueButton';
<CueButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.