Skip to content
mdxcn is now part of Shadcn Labs. details

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 ]
  • registry/default
  • graph-frame
  • graph-frame.tsxui
  • graph-motion.tslib
  • graph-tree
  • graph-tree.tsxui
Tree with 6 nodes
<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

[ ON CALL ]
  • platform
  • apipriya
  • workersjon
  • edgemina
Tree with 4 nodes
<GraphTree title="ON CALL">

- platform
  - api — priya
  - **workers** — jon
  - edge — mina

</GraphTree>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
nodesTreeNode[]—Nested nodes. Each may have label, meta, accent, and children. Optional when children are Markdown.
childrenMarkdown—- registry/default - **graph-tree.tsx** — ui
cornerstring"+"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.
classNamestring—Passed to the outer frame.