Tree View
v1.0.0A collapsible tree view for hierarchical data.
Basic Tree
Click folders to expand and collapse nested items.
src
app
page.tsx
components
package.json
Custom Icons
Add custom icons to tree nodes.
lib
utils.ts
button.tsx
API Reference
All available props for this component.
Property | Type | Default | Description |
|---|---|---|---|
| data | TreeNodeData[] | required | Array nested configuration data map defining tree leaf parameters, text node titles, and custom icons. |
| defaultExpanded | string[] | [] | Collects targeted string ID identifiers that populate the internal expansion state index on layout load. |
| className | string | '' | Standard inline style class hook to safely manipulate layout dimensions or layout padding constraints. |