Component packs › Baize › Pocket Delete

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.

Pocket Delete props

PropTypeDefaultDescription
itemsPocketDeleteItem[]
labelstringAccessible name of the list.
widthnumber380Width in px. Default 380.
darkboolean
onRemove(item: PocketDeleteItem, index: number) => void
autoplaynumber | falseShowcase mode: deletes a row every N ms while visible, and refills the list when it is empty.

Methods on the ref

Use it in React

import PocketDelete from './PocketDelete';

<PocketDelete />

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

More in Baize

Good for: Skeuomorphic UI.