Trees
A hierarchy defined by indentation.
A hierarchy defined by indentation. dir is the way it grows: down (the default) reads as an outline, right puts each level in its own column, and split balances branches either side of a centre — prefix a branch with > or < to pin its side. nodes=boxed draws every node as a pill. Put a \n anywhere a label should break; the node gets taller by a row and a line still meets it at the middle of its first one.
A block written inside it is drawn below it. What goes inside what
@tree dir=right
Table
Cell
Content type
Interaction
Row
Actions
Column
Width- Table
- Cell
- Content type
- Interaction
- Row
- Actions
- Column
- Width
- Cell
Settings
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
dir | down · right · split | no | down | The way the tree grows. down grows down the page — an outline, or with nodes=boxed a top-down chart. right gives each level its own column, aligned so a level reads straight down. split places branches either side of a centre, balanced by size. |
style | solid · dashed · rounded | no | solid | Line style between nodes. |
nodes | text · boxed | no | text | How each node is drawn. text sets the labels on the page, joined by thin lines — quiet enough to sit inside prose. boxed draws every node as a pill, branches darker than leaves, with arrows from parent to child — an infographic that carries more weight. |
More examples
@tree(dir=down nodes=boxed)
Discovery
Interviews
Recruiting
Synthesis
Survey
Design
Analysis- Discovery
- Interviews
- Recruiting
- Synthesis
- Survey
- Design
- Analysis
- Interviews
@tree
Orders
Customer
Segment
Product- Orders
- Customer
- Segment
- Product
- Customer
@tree(dir=right nodes=boxed)
Discovery
Interviews
Synthesis
Survey- Discovery
- Interviews
- Synthesis
- Survey
- Interviews
@tree dir=split
Central idea
> Pillar A
> Sub-point
< Pillar B- Pillar B
Central idea
- Pillar A
- Sub-point
@tree(dir=split nodes=boxed)
Retention
> Onboarding
> First value
< Habit loop- Habit loop
Retention
- Onboarding
- First value