Tree API
import { Tree } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
indentSize | string | |
onExpandedChange | (detail: TreeExpandedChangeDetail) => void | |
onSelect | (detail: TreeSelectDetail) => void | |
value | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Tree.Item props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode | |
disabled | boolean | |
expanded | boolean | |
label | React.ReactNode | |
prefix | React.ReactNode | |
selected | boolean | |
suffix | React.ReactNode | |
value (required) | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-tree>
Tree renders the ui-tree custom element from @editora/ui-core, which can also be used without React.
Attributes: aria-label, aria-labelledby, indent-size, value
Events: expanded-change, select