uiconfig.js describes a UI as plain config objects (or TypeScript decorators) bound to your data. A renderer turns the config into a live panel. This is the API reference of the three packages; the search at the top covers all of them, and the switcher next to the name moves between them.
UiObjectConfig, ChangeEvent), the decorators
(uiSlider, uiColor, uiContainer, …), generateUiFolder to make a config from any object, and the base classes
for renderers (UiConfigRenderer, UiConfigMethods). JavaScript code does not need it; TypeScript code imports its
types and decorators.UI class adds setTheme for the modes of uiconfig-tweakpane/theme.css
and typeGenerators for components of your own.import {UI} from 'uiconfig-tweakpane' // or 'uiconfig-blueprint'
const light = {intensity: 2, enabled: true}
const ui = new UI()
ui.appendChild({
type: 'folder',
label: 'Light',
children: [
{type: 'slider', label: 'Intensity', bounds: [0, 10], property: [light, 'intensity']},
{type: 'checkbox', label: 'Enabled', property: [light, 'enabled']},
],
})