You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TreeView lets users navigate hierarchical lists of data with nested levels that can be expanded and collapsed.
Visual References
Description
We can build a tree view with nested Accordion. We could have props like:
value defaultValue onValueChange
checked defaultChecked onCheckedChange
The value would either be "string" | "string[]" depending on the type "single" | "multiple". We could also potentially support 2 different types for checked and collapsible state, e.g having single for checked state and multiple for collapsible state.
Not sure if we ever need to support editing / sorting like MUI-X does, it should be achieved by composition if possible, though.
TreeView
TreeView lets users navigate hierarchical lists of data with nested levels that can be expanded and collapsed.
Visual References
Description
We can build a tree view with nested Accordion. We could have props like:
value
defaultValue
onValueChange
checked
defaultChecked
onCheckedChange
The value would either be
"string" | "string[]"
depending on the type"single" | "multiple"
. We could also potentially support 2 different types for checked and collapsible state, e.g havingsingle
for checked state andmultiple
for collapsible state.Not sure if we ever need to support editing / sorting like MUI-X does, it should be achieved by composition if possible, though.
Anatomy
Libraries / Hooks
The text was updated successfully, but these errors were encountered: