StructureTree
object{6} : object{6}
:
:
:
:
: array[2]
: object{2}
| Prop | Type | Default | Value | Notes |
|---|
| containerRowClass | string? | built-in | Replaces the tunable container header row classes; the Value shows the built-ins, edit from there. Clearing restores the built-ins. | |
| editable | boolean | true | Gates leaf editing and key renames; the callbacks stay wired either way. | |
| leafRowClass | string? | 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. | |
| value | unknown | — | 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. |