ValyroUI Русская версия

Todo List

Checklist with a wavy strike-through on done items. Pro · Animated components › Lists and people

A checklist — daily quests, a raid checklist — where finishing an item draws a wavy line through its text, line by line, following however the label wraps. The checkboxes are real form controls.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add todo-list
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { TodoList } from 'valyro-ui-pro';

Props

PropTypeDefault
items *readonly TodoListItem[]Tasks in order; a label may wrap over several lines.
donestring[]Ids of the finished items.
defaultDonestring[][]Initial done when uncontrolled.
onDoneChange(done: string[]) => voidCalled with the new done when it changes.
animation'spring' | 'none''spring'spring (default): the checkbox bounces and a wavy line draws through the label; none: no motion.

Related components

Previous: Notification Stack · Next: Presence Avatars · All Animated components