Examples
Layout
Elkjs Tree

Elkjs Tree

Like our dagre example, this example shows how you can integrate elkjs (opens in a new tab) with React Flow for more advanced tree layouts. The code for this example builds a similar tree to the dagre example, but you can look at the reference here (opens in a new tab) to see what you can configure (hint: it's a lot).

export default function App() {
  const data: string = "world"

  return <h1>Hello {data}</h1>
}

Read-only