Basic Usage
Thename prop connects the Pages component to client state. When the entry key changes (via SetState), the corresponding page renders. This makes Pages ideal for wizard flows, multi-step forms, or any layout where you want to swap entire sections without a server round-trip.
Step-by-Step Navigation
Pages pair naturally withSetState to build wizard flows. Each page’s button advances to the next step. Use as pages to capture the reference, then pass pages directly to SetState instead of hardcoding the state key:
Reading the Value
Use.rx to get a reactive reference to the active page’s value string. Since Pages has no built-in navigation, you provide your own — here a Select drives which page is shown:
SetState accepts a stateful component directly — it extracts the state key automatically. So SetState(pages, EVENT) writes the Select’s chosen value into the pages’ state key, switching the visible page. EVENT is a reactive reference that resolves to the value from the triggering component.
API Reference
Protocol Reference
Pages
Page