Component packs › Baize › Pocket Delete
Delete a row and its ball is struck across the cloth into a corner pocket; the rows below roll up to close the gap.
Pocket Delete is a list 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: balls roll over printed rows, FLIP with rolling, focus kept.
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 |
|---|---|---|---|
items | PocketDeleteItem[] | ||
label | string | Accessible name of the list. | |
width | number | 380 | Width in px. Default 380. |
dark | boolean | ||
onRemove | (item: PocketDeleteItem, index: number) => void | ||
autoplay | number | false | Showcase mode: deletes a row every N ms while visible, and refills the list when it is empty. |
readonly items: PocketDeleteItem[]remove(index: number): voiddestroy(): voidimport PocketDelete from './PocketDelete';
<PocketDelete />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.