Tree tablePro
A table with nested rows, tri-state selection (checking a parent checks everything under it), sort that keeps the hierarchy, lazy children with a retry row, and a pinned header.
oxyn add tree-table| src | 412 KB | team | |
| api | 120 KB | Ravi | |
| router.rs | 18 KB | Ravi | |
| limit.rs | 6 KB | Agent | |
| ui | 280 KB | Lea | |
| main.rs | 4 KB | Ravi | |
| vendor | 9200 KB | — | |
| README.md | 8 KB | Maya |
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- A table with nested rows: expand and collapse, tri-state selection where checking a parent checks every leaf under it and parents follow their children, sort that cycles ascending → descending → off and keeps each row under its parent, lazy children that load on first expand with a retry row on failure, a pinned header and an optional max height.
When not to use
- An agent asks before it acts: use Approval Card instead.
- Several open requests in one card: use Approval pager instead.
- An agent's question in its own card above the composer: use Decision Card instead.
Installation
Tree table is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add tree-tableUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Select
Tri-state selection.
| src | 412 KB | team | |
| api | 120 KB | Ravi | |
| router.rs | 18 KB | Ravi | |
| limit.rs | 6 KB | Agent | |
| ui | 280 KB | Lea | |
| main.rs | 4 KB | Ravi | |
| vendor | 9200 KB | — | |
| README.md | 8 KB | Maya |
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Plain
Read-only.
| src | 412 KB | team |
| api | 120 KB | Ravi |
| router.rs | 18 KB | Ravi |
| limit.rs | 6 KB | Agent |
| ui | 280 KB | Lea |
| main.rs | 4 KB | Ravi |
| vendor | 9200 KB | — |
| README.md | 8 KB | Maya |
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Retry
Lazy children failed.
| src | 412 KB | team | |
| api | 120 KB | Ravi | |
| router.rs | 18 KB | Ravi | |
| limit.rs | 6 KB | Agent | |
| ui | 280 KB | Lea | |
| main.rs | 4 KB | Ravi | |
| vendor | 9200 KB | — | |
| README.md | 8 KB | Maya |
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
TreeTable
| Prop | Type | Default | Description |
|---|---|---|---|
modelrequired | TreeModel | — | Model. |
columnsrequired | Vec<String> | — | Column headers. |
selectable | bool | Default::default() | Checkbox column. |
max_height | u32 | Default::default() | Max body height px (0 = none). |
on_toggle | EventHandler<String> | — | Expand / collapse. |
on_select | EventHandler<String> | — | Select. |
on_sort | EventHandler<usize> | — | Sort column. |
on_retry | EventHandler<String> | — | Retry a lazy load. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Header sort buttons, row toggles, checkboxes |
Accessibility
- role=treegrid; rows carry aria-level and aria-selected; checkboxes report mixed.
- Headers carry aria-sort.
From the spec
- role=treegrid; aria-level, aria-selected; checkboxes report mixed; aria-sort on headers.
Motion & interaction
Timing
- Reduced motion: no entrance rise, no shimmer (static muted text), rings and bars jump to their value.
Responsive behaviour
- Scrolls inside its frame; the header stays pinned with a max height.
Edge cases (spec)
- Scrolls inside its frame with a pinned header.
Notes for AI
- Import
TreeTablefromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
TreeTableElinoxyn_gpui. - Props to set first:
model,columns. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.