# Tree
URL: /diagrammatic/docs/charts/tree

Parent-child structure, top down.

> For AI agents: a documentation index is available at [llms.txt](/llms.txt). Use `.md` for canonical markdown pages; `.mdx` is kept as a backwards-compatible alias on supported URL paths.

```
import { Tree } from "diagrammatic";
```

Who reports to whom. No sizes. The tree is the org, not a metric.

- aspect

  1.35

- title

  Engineering

- depth

  2

- root

  - label

    eng

  - children

    - - label

        platform

      - children

        - - label

            runtime

        - - label

            data

        - - label

            security

    - - label

        product

      - children

        - - label

            checkout

        - - label

            search

        - - label

            growth

    - - label

        mobile

      - children

        - - label

            ios

        - - label

            android

    - - label

        infra

      - children

        - - label

            sre

        - - label

            net

Illustrative data. Engineering team directory.

fig. 51 · Engineering team structure

Product and platform each have three teams. Mobile and infra each have two. The engineering root therefore has four branches and ten leaf teams.

- Use it for

  Org charts, file systems, and decision paths.

- Watch out

  Wide levels squeeze; collapse subtrees rather than shrinking the type.