Component packs › Nib › Stroke Checkbox

Stroke Checkbox

Each tick is one quick pen stroke, heavy at the turn and flicking off thin, wet then dry, and never quite the same twice.

Stroke Checkbox is a checkbox from Nib, a component pack with 6 pen components: Pen and signature components that write like a fountain pen: speed-shaped strokes, wet ink that dries. Price: $2 for the whole pack.

Built with: pen-stroke tick, ink lifts on untick, native checkbox.

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.

Stroke Checkbox props

PropTypeDefaultDescription
itemsstring[]Labels for a group of checkboxes.
checkednumber[]Initially ticked indexes.
labelstring
darkboolean
onChange(checked: number[]) => void
autoplaynumber | falseShowcase mode: ticks and unticks boxes every N ms while visible.

Methods on the ref

Use it in React

import StrokeCheckbox from './StrokeCheckbox';

<StrokeCheckbox />

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

More in Nib

Good for: Checkboxes, Signature pads.