UI Library

StructureTree

object{6} : object{6}
:
:
:
:
: array[2]
: object{2}
Prop Type Default Value Notes
containerRowClassstring?built-in
Replaces the tunable container header row classes; the Value shows the built-ins, edit from there. Clearing restores the built-ins.
editablebooleantrue
Gates leaf editing and key renames; the callbacks stay wired either way.
leafRowClassstring?built-in
Replaces the tunable leaf row classes; the Value shows the built-ins, edit from there. Clearing restores the built-ins.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Control scale; the tree text and its edit/copy controls follow it.
valueunknown—
Tree data; any JSON document renders as nested nodes. The eye resets to the default tree.
onChange(path: string[], newValue: unknown) => void——Called with the path and the parsed replacement when a leaf edit commits.
onRenameKey(parentPath: string[], oldKey: string, newKey: string) => void——Called with the parent path and key pair when a key rename commits.