💡 This is the legacy site for v11. If you are looking for the latest docs, please visit React Flow
Examples
Layout
Expand and Collapse

Expand and Collapse

Pro

Interactive example to demonstrate how you can navigate hierarchical data structures. You can click on a node to toggle its child nodes and animate the layout changes.

This is a Pro example. Get all pro examples, 1:1 support from the xyflow team and prioritized Github issues with a React Flow Pro subscription.

About this Pro Example