ui/client/features/component-docs/components/StateSwitcher
Cockpit client (features), next. Source: ui/client/features/component-docs/components/StateSwitcher.tsx.
Functions#
StateSwitcher()#
StateSwitcher(
__namedParameters):Element
Defined in: ui/client/features/component-docs/components/StateSwitcher.tsx:7
"State switcher": every state of the component's machine, so a person can preview each one in the Flow inset without editing the workflow file.
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
machine |
WorkflowMachine |
Yes | — | |
current |
`string | null` | Yes | — |
onChange |
(path: string) => void |
Yes | — |
Returns#
Element