Carregando…
Carregando…
Carregando…Interactive task checklist with progress bar, strikethrough and 4 intent colors.
$ npx kikitocn add checklist@/lib/utilsimport { Checklist } from "@/components/ui/cn/checklist/Checklist";
export function ChecklistExample() {
return (
<Checklist />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
items* | ChecklistItem[] | — | Lista de tarefas: { id, label, checked?, description? } |
onChange | (items: ChecklistItem[]) => void | undefined | Callback quando um item é marcado/desmarcado |
showProgress | boolean | false | Exibe barra de progresso no topo |
intent | 'primary' | 'success' | 'warning' | 'danger' | 'primary' | Cor dos checkmarks e barra de progresso |
strikethrough | boolean | true | Aplica tachado nos itens marcados |
Default — progress + strikethrough
Success intent