Skip to main content

Tree

Tree — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

Tree — Prism component.

Accessibility

Rendered as a real <table> with header scopes; sortable columns expose aria-sort. Row selection and actions are keyboard reachable.

Import

const { Tree } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
itemsTreeNodeData[]Yes
defaultExpandedKeysstring[]
selectedKeystring | nullControlled selected node id.
onSelectionChange(id: string, node: TreeNodeData) =&gt; void
classNamestring