Component packs › Slate › Chalk Checkbox
Ticking draws a coloured chalk tick in one movement; unticking rubs it out and leaves a little dust.
Chalk Checkbox is a checkbox 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: native checkboxes, hand-drawn boxes, tick stroke.
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 | string[] | ||
checked | number[] | ||
label | string | ||
width | number | 340 | Board width in px. Default 340. |
dark | boolean | ||
onChange | (checked: number[]) => void | ||
autoplay | number | false | Showcase mode: ticks the next row every N ms while visible. |
readonly checked: number[]setChecked(index: number, on: boolean): voiddestroy(): voidimport ChalkCheckbox from './ChalkCheckbox';
<ChalkCheckbox />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Checkboxes.