TreeView
Installation
import { TreeView } from 'uxp/components';Signature
const TreeView: React.ForwardRefExoticComponent<React.RefAttributes<TreeViewHandle> & TreeViewProps>Examples
<TreeView
items={[
{ id: '1', label: 'Root Node', children: [{ id: '1-1', label: 'Child Node' }] }
]}
selected={selectedNode}
onSelect={handleSelectNode}
showPath={true}
styles={{
nodeBGColor: '#f0f0f0',
labelTextColor: '#333',
}}
/>Properties
Name
Type
Mandatory
Default Value
Example Value
Ref Handlers
Method
Type
Description
Related Types
Last updated