Component packs › Baize › Cushion Tabs

Cushion Tabs

The marker ball is played as a bank shot that comes off the far cushion and stops dead under the tab you picked.

Cushion Tabs is a tabs 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: speed solved by simulation, one-cushion bank, chalk trail.

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.

Cushion Tabs props

PropTypeDefaultDescription
tabsCushionTabsItem[]
indexnumber
labelstring
widthnumber400Width in px. Default 400.
darkboolean
onChange(index: number) => void
autoplaynumber | falseShowcase mode: moves to another tab every N ms while visible.

Methods on the ref

Use it in React

import CushionTabs from './CushionTabs';

<CushionTabs />

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

More in Baize

Good for: Skeuomorphic UI.