ZeroGravity UI

Planningstable

Task

Expandable task row

A task row with a done checkbox, a summary line, optional progress and an expandable detail region.

Subtasks
WritingThis week
Book the venueTomorrow30 min
Send invoicesDone

Customize

Lookone structure, four styles
variant

Usage

TSX
import { Task } from "zerogravity/task"

<Task
    title="Quarterly report"
/>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

8 documented props on Task
PropertyTypeDefaultDescription
variant"pixel" | "classic" | "minimal" | "glass""pixel"Style.
titleReactNode—Names the row and its checkbox.
done / expandedcontrolled props with defaultX and onXChangefalseCompletion and disclosure state.
metaReactNode—Summary items, separated automatically.
progress{ value: number; max?: number }—Adds a progress bar named after the task.
actionsReactNode—Buttons or menus at the end of the row.
childrenReactNode—Detail region; adds the disclosure button.
as"div" | "li" | "article""div"Element rendered.

Dependencies

0 external runtime dependencies

Ships with nothing but React.