Manta Developers
GitHub
Menu

@manta-eu/react/tree

Reference for @manta-eu/react/tree as it is on main.

Type Aliases

TreeNodeData

TreeNodeData = object

Properties

children?

optional children?: TreeNodeData[]

defaultExpanded?

optional defaultExpanded?: boolean

disabled?

optional disabled?: boolean

icon?

optional icon?: ReactNode

id

id: string

label

label: ReactNode


TreeProps

TreeProps = object

Properties

aria-label?

optional aria-label?: string

className?

optional className?: string

defaultSelectedId?

optional defaultSelectedId?: string

nodes

nodes: TreeNodeData[]

onSelect?

optional onSelect?: (id) => void

Parameters
id

string

Returns

void

selectedId?

optional selectedId?: string

Functions

Tree()

Tree(props): ReactElement<unknown, string | JSXElementConstructor<any>>

Parameters

props

TreeProps

Returns

ReactElement<unknown, string | JSXElementConstructor<any>>