DocumentationDownloads and examples

Tree

Is a Navigable representation of a Tree data Structure

Use Cases:

  • Visualize navigation of a Data Tree
  • Better suited for navigating through deep hierarchical levels

Tree Props

NameUseTypeDefinition
title
required
stringTitle text for the component.

TreeViewElement

Used to show items of the Tree.

TreeViewElement Props

NameUseTypeDefinition
name
required
stringName of the Tree Element component.
arrow
optional
'left' | 'right' | 'none'By default, displays a left-sided arrow; can be set to 'right' or 'none'.
className
optional
stringAlternative class name for the Tree Element component.
disabled
optional
booleanDisables the Tree Element component.
icon
optional
stringDisplays an icon for the Tree Element component if needed.
onClick
optional
(e?: React.MouseEvent) => voidClick event handler function for the Tree Element component.

Examples

Default Tree View
The drop-down icon appears if it contains children.

Variants

Tree Max Deep
The max level of deepness for the Tree view is 4 levels.

States

Disabled Nested Tree view
Disabled Tree view