Planningstable
Task
Expandable task row
A task row with a done checkbox, a summary line, optional progress and an expandable detail region.
WritingThis week
Book the venue
Send invoices
Customize
Lookone structure, four styles
variantUsage
import { Task } from "zerogravity/task"
<Task
title="Quarterly report"
/>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
variant | "pixel" | "classic" | "minimal" | "glass" | "pixel" | Style. |
title | ReactNode | — | Names the row and its checkbox. |
done / expanded | controlled props with defaultX and onXChange | false | Completion and disclosure state. |
meta | ReactNode | — | Summary items, separated automatically. |
progress | { value: number; max?: number } | — | Adds a progress bar named after the task. |
actions | ReactNode | — | Buttons or menus at the end of the row. |
children | ReactNode | — | Detail region; adds the disclosure button. |
as | "div" | "li" | "article" | "div" | Element rendered. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.