Todo
Checkable task list with minimal TUI style. Click to toggle between [ ] and [x].
Todo
Design lines
vue
1<Tabs defaultValue="tuix">2 <TabsList>3 <Tab value="tuix">TUIX</Tab>4 <Tab value="rubik">Rubik</Tab>5 </TabsList>6 <TabPanel value="tuix">7 <Todo text="Write docs" design="tuix" />8 </TabPanel>9 <TabPanel value="rubik">10 <Todo text="Write docs" design="rubik" />11 </TabPanel>12</Tabs>Demo
Basic (items)
Lists Todo items whose state is bound with v-model:done.
vue
1<Todo v-model:done="t1">Redesign Toast to match the expected aesthetics</Todo>2<Todo v-model:done="t2">Improve component documentation</Todo>3<Todo v-model:done="t3">Add tests for all components</Todo>Props
done
Completed state of the item.
| Type | Default | Required |
|---|---|---|
boolean | false | ❌ |
vue
1<Todo v-model:done="task.done">Do something</Todo>text
Task text as a prop (alternative to the default slot).
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
design
Design line (or inherit from data-design).
| Type | Default | Required |
|---|---|---|
'tuix' | 'rubik' | — (inherits from data-design) | ❌ |
Events
| Event | Payload | Description |
|---|---|---|
update:done | boolean | Emitted when the user toggles the checkbox (use with v-model:done). |
toggle | boolean | Emitted alongside update:done for consumers that prefer an explicit event name. |
Slots
| Slot | Description |
|---|---|
default | Custom content shown next to the checkbox (replaces the text prop). |
vue
1<Todo v-model:done="done" text="Do something" />CSS Custom Properties
| Token | Default | Description |
|---|---|---|
--font-mono | "JetBrains Mono", ui-monospace, monospace | Monospace font stack for code-like content (key labels, log lines, chips). |
--accent | from theme (--ctp-latte-mauve / --ctp-mocha-mauve) | Accent color, mapped from the active semantic color. |
--bg | from theme (--ctp-latte-base / --ctp-mocha-base) | Base background of the surface. |
--bg-elevated | from theme (--ctp-latte-surface0 / --ctp-mocha-surface0) | Background of floating surfaces (modals, dropdowns, popovers). |
--text | from theme (--ctp-latte-text / --ctp-mocha-text) | Primary text color used inside the component. |
--text-muted | from theme (--ctp-latte-subtext1 / --ctp-mocha-subtext1) | Secondary text for hints, annotations and disabled state. |
Ver Theming para la convención completa.