Component packs › Slate › Chalk Tabs
The active tab is underlined in coloured chalk by a visible stick; the old line is rubbed out and leaves dust.
Chalk Tabs is a tabs from Slate, a component pack with 6 chalkboard components: Controls written in chalk on a slate: strokes that draw themselves and rub out to dust. Price: $2 for the whole pack.
Built with: grainy chalk engine, stroke drawn over time, smudge on erase.
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 |
|---|---|---|---|
tabs | ChalkTabsItem[] | ||
index | number | ||
label | string | ||
width | number | 380 | Board width in px. Default 380. |
dark | boolean | ||
onChange | (index: number) => void | ||
autoplay | number | false | Showcase mode: moves to the next tab every N ms while visible. |
readonly index: numberselect(index: number): voiddestroy(): voidimport ChalkTabs from './ChalkTabs';
<ChalkTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Checkboxes.