ComponentsNew

Strike Checklist

A to-do list on real checkboxes. Ticking a task draws a check, strikes the text through and pops a tiny burst.

Customize

checkColor
textColor
doneColor
background

Based on warm-panther-74 by JkHuger (MIT license) ยท Terms of use

More in Pro

View all

Props

8 properties
PropertyTypeDefaultDescription
itemsstring[]โ€”Task labels, one checkbox each.
defaultCheckednumber[]โ€”Indexes of the tasks checked from the start (from zero). Defaults to [0].
onToggle(index: number, checked: boolean) => voidโ€”Called when a task is checked or unchecked.
checkColorstring"#fafafa"Color of the check, the dash and the burst.
textColorstring"#e5e5e5"Color of an open task.
doneColorstring"#525252"Color of a done, struck-through task.
backgroundstring"#111111"Card background.
classNamestringโ€”Classes for the wrapper.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all