Skip to content
Back

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
src412 KBteam
api120 KBRavi
router.rs18 KBRavi
limit.rs6 KBAgent
ui280 KBLea
main.rs4 KBRavi
vendor9200 KB—
README.md8 KBMaya
The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add tree-table

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Select

Tri-state selection.

src412 KBteam
api120 KBRavi
router.rs18 KBRavi
limit.rs6 KBAgent
ui280 KBLea
main.rs4 KBRavi
vendor9200 KB—
README.md8 KBMaya
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Plain

Read-only.

src412 KBteam
api120 KBRavi
router.rs18 KBRavi
limit.rs6 KBAgent
ui280 KBLea
main.rs4 KBRavi
vendor9200 KB—
README.md8 KBMaya
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Retry

Lazy children failed.

src412 KBteam
api120 KBRavi
router.rs18 KBRavi
limit.rs6 KBAgent
ui280 KBLea
main.rs4 KBRavi
vendor9200 KB—
README.md8 KBMaya
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

TreeTable

PropTypeDefaultDescription
modelrequiredTreeModel—Model.
columnsrequiredVec<String>—Column headers.
selectableboolDefault::default()Checkbox column.
max_heightu32Default::default()Max body height px (0 = none).
on_toggleEventHandler<String>—Expand / collapse.
on_selectEventHandler<String>—Select.
on_sortEventHandler<usize>—Sort column.
on_retryEventHandler<String>—Retry a lazy load.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabHeader 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 TreeTable from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: TreeTableEl in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI