Skip to content

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.

TypeDefaultRequired
booleanfalse❌
vue
1<Todo v-model:done="task.done">Do something</Todo>

text ​

Task text as a prop (alternative to the default slot).

TypeDefaultRequired
string—❌

design ​

Design line (or inherit from data-design).

TypeDefaultRequired
'tuix' | 'rubik'— (inherits from data-design)❌

Events ​

EventPayloadDescription
update:donebooleanEmitted when the user toggles the checkbox (use with v-model:done).
togglebooleanEmitted alongside update:done for consumers that prefer an explicit event name.

Slots ​

SlotDescription
defaultCustom content shown next to the checkbox (replaces the text prop).
vue
1<Todo v-model:done="done" text="Do something" />

CSS Custom Properties ​

TokenDefaultDescription
--font-mono"JetBrains Mono", ui-monospace, monospaceMonospace font stack for code-like content (key labels, log lines, chips).
--accentfrom theme (--ctp-latte-mauve / --ctp-mocha-mauve)Accent color, mapped from the active semantic color.
--bgfrom theme (--ctp-latte-base / --ctp-mocha-base)Base background of the surface.
--bg-elevatedfrom theme (--ctp-latte-surface0 / --ctp-mocha-surface0)Background of floating surfaces (modals, dropdowns, popovers).
--textfrom theme (--ctp-latte-text / --ctp-mocha-text)Primary text color used inside the component.
--text-mutedfrom theme (--ctp-latte-subtext1 / --ctp-mocha-subtext1)Secondary text for hints, annotations and disabled state.

Ver Theming para la convención completa.