Tree View

v1.0.0

A 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
dataTreeNodeData[]requiredArray nested configuration data map defining tree leaf parameters, text node titles, and custom icons.
defaultExpandedstring[][]Collects targeted string ID identifiers that populate the internal expansion state index on layout load.
classNamestring''Standard inline style class hook to safely manipulate layout dimensions or layout padding constraints.
© 2026 Venti UI Labs. UI made right.