StableState
Component state
Overview
State that components publish about themselves — selections, values, open/closed, active tab — readable by other components and settable by actions.
Purpose
Build master–detail screens, enable buttons based on a selection, open modals and drawers, or jump to a wizard step without writing your own variables.
Inputs
- Exposed automatically by components (see the key list under Component state in the Data Picker). Commonly used keys:
selectedId/selectedRecord(tables, lists, cards, kanban),value(inputs),open(modal, drawer),activeIndex(tabs, stepper, carousel),page(tables, pagination),values(form). - Set with Set state (scope: Component state → choose the component and key), for example
open = trueto show a Modal component.
Configuration
- Name your components (double-click in the layers panel) so state references stay readable.
- For a table selection, set its Row click to “Select”.
Outputs
Component name › keyin the Data Picker;{{component.<id>.<key>}}in templates.
Example
Open a drawer component
Example
Button “Filters” › On click: Set state Component state › Filters drawer › open = true Drawer “Filters drawer” › On close: Refresh data
Errors
- None; unknown keys are simply empty.
Limitations
- Only components on the current page are listed; state resets when the page reloads.
Advanced
- Defined per component by
exposesState: string[]; stored ascomponentState[componentId]and written throughsetComponentState. Forms also publishlastResultand__resetinternally.