39 Pro components and page blocks

Get Pro

Strike Todos

Preview

Customize

Strike0.35s
Width416px
Max length32

Usage

import { StrikeTodos } from "@/components/uibrik/strike-todos/strike-todos";

<StrikeTodos />

Installation

npx shadcn@latest add https://uibrik.com/r/strike-todos.json
Adds the files to components/uibrik/strike-todos. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/strike-todos.

Props

StrikeTodos
placeholder
Type string
"Add a to-do"
strikeDuration
Type number
0.35
How long the line takes to cross a to-do.
dim
Type boolean
true
Fade finished to-dos so the open ones stand out.
width
Type number
416
Width of the list.
maxLength
Type number
32
Longest to-do, in characters.
initialItems
Type string[]
SAMPLE_TODOS
To-dos listed at the start.
onAdd
Type (label: string) => void
–
Called when a to-do is added.
onToggle
Type (label: string, done: boolean) => void
–
Called when a to-do is checked or unchecked.
className
Type string
–
Classes for the list.