Tree
A tree component that displays hierarchical data with expandable and collapsible nodes. It includes animations and allows for custom node rendering. Use it to represent nested data structures like file systems or organization charts.
Loading preview
Installation
terminal
npx layro-cli add @shadcnblocks/tree
npx layro-cli add @shadcnblocks/tree
bunx layro-cli add @shadcnblocks/tree
New project? Start with init. Writes third-party code and installs packages with scripts off.
Code
Sign in to see the code
Free, with GitHub, Google or email. The install command above works without an account.
Sign inVersions
1.0.0 · current
Nov 7, 2026
First release.







