DocsExamples

Examples

Expanding Parsed Tree Example

A Shadcn Table example demonstrating expandable sub-rows in a tree structure parsed from a flat list of data

Shadcn Table supports showing rows in a expanding tree structure and parsing them from a flat data structure with the getSubRows option. Learn more about how to customize this in the expanding sub-rows feature guide.

Try it

  1. Click the arrow on Henry Lynch. The people who report to him show below.
  2. Click Expand all in the header. Every level opens.
Storybook