Native controls
Switchfunction
Renders a button-backed ARIA switch.
Rendered content
SwitchOptionsinterface
Visible content and accessible name.
State construction
makeStatefunction
Creates hydrated switch state independent of rendering.
State transitions
setCheckedfunction
Sets the switch to the requested checked state.
togglefunction
Toggles the switch between checked and unchecked.
interface
InitialStateinterface
Public interface exposed as InitialState from @typed/ui/Switch.
Stateinterface
Public interface exposed as State from @typed/ui/Switch.
variable
StateSchemavariable
Public variable exposed as StateSchema from @typed/ui/Switch.