Removes all child elements from this container.
Adds a numeric range slider. Value is persisted by id and restored on next run.
Adds a single-line text input. Value is persisted by id and restored on next run. defaultText is only used when no saved value exists.
OptionaldefaultText: stringAdds a boolean toggle switch. Value is persisted by id and restored on next run.
Adds a dropdown selector. Value is persisted by id and restored on next run.
Adds a multi-line text area. Value is persisted by id and restored on next run. defaultText is only used when no saved value exists.
OptionaldefaultText: stringAdds a color picker. Value is persisted by id and restored on next run. defaultColor is only used when no saved value exists.
OptionaldefaultColor: stringAdds a hotkey capture field. The captured combo is persisted by id and restored on next run, including its active binding.
OptionaldefaultBind: stringAdds a file picker dialog button. Selected path is persisted by id and restored on next run.
Optionaloptions: { filters?: string[] }Adds a directory picker dialog button. Selected path is persisted by id and restored on next run.
Adds a multi-select list box. Selected items are persisted by id and restored on next run.
Optionalitems: string[]Adds a data grid with typed columns. Row data is persisted by id and restored on next run.
Adds a tabbed container group. Not persisted.
Adds a horizontal row layout container. Children are arranged left-to-right. Not persisted.
Optionalbuilder: (row: ContainerWrapper) => voidAdds a vertical column layout container. Children are stacked top-to-bottom. Not persisted.
Optionalbuilder: (col: ContainerWrapper) => void
The root UI surface and nested container interface. All Add* methods return a handle for reading values, listening to changes, or further layout.
Automatic persistence: Every element that takes an
idas its first argument (AddSlider,AddTextInput,AddToggle,AddDropdown,AddTextArea,AddColorPicker,AddHotkeyCapture,AddFilePicker,AddDirectoryPicker,AddListBox,AddDataGrid) automatically saves its value to per-script storage whenever the user changes it and restores the saved value on the next run. Theidis the storage key — keep it stable across script edits. Layout-only elements (AddText,AddButton,AddRow,AddColumn,AddTabGroup) have no state and are not persisted.Example