Seed Bible extension API (v1.19.0) / seed-bible/components / Switch
Function: Switch()
function Switch(__namedParameters: SwitchProps): Element;An on/off switch for a setting that takes effect at once (Show headings, Keep screen awake). For a choice that's submitted later or one of several ticked together (agreeing to the terms, picking pages), use Checkbox.
It has no text of its own. Inside a SettingRow it's named by the row's label; anywhere else, give it an aria-label, or an id that a <label> points at. Inside a row it always takes the row's id, so the label can't end up pointing at nothing; to choose the id, pass controlId to the row.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | SwitchProps |
Returns
Element