tree
GraphTree
A nested list drawn with branch lines, good for file structures or an org chart. Bold a node to highlight it.
- use it
- Good for nested files or an org chart.
- instead
- A timeline or a table.
registry
- registry/default
- graph-frame
- graph-frame.tsxui
- graph-motion.tslib
- graph-tree
- graph-tree.tsxui
<GraphTree title="REGISTRY">
- registry/default
- graph-frame
- graph-frame.tsx — ui
- graph-motion.ts — lib
- graph-tree
- **graph-tree.tsx** — ui
</GraphTree>install
command
team
- platform
- apipriya
- workersjon
- edgemina
<GraphTree title="ON CALL">
- platform
- api — priya
- **workers** — jon
- edge — mina
</GraphTree>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| nodes | TreeNode[] | — | Nested nodes. Each may have label, meta, accent, and children. Optional when children are Markdown. |
| children | Markdown | — | - registry/default - **graph-tree.tsx** — ui |
| corner | string | "+" | Character at each corner of the frame. |
| frame | "box" | "corners" | "rule" | "none" | "box" | box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content. |
| className | string | — | Passed to the outer frame. |