uibrik

Flaming Todos

Preview

Customize

Burn1.3s
Ash300
Flight0.60s
Width416px
Max length32

Usage

import { FlamingTodos } from "@/components/uibrik/flaming-todos/flaming-todos";

<FlamingTodos />

Installation

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

Props

FlamingTodos
placeholder
Type string
"Add a to-do"
burnDuration
Type number
1.3
How long the flames take to climb through a to-do.
ash
Type number
300
Ash particles per burn.
flightDuration
Type number
0.6
How long a new to-do takes to fly into the list.
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.
onComplete
Type (label: string) => void
–
Called when a to-do is checked off.
className
Type string
–
Classes for the list.