Seed Bible extension API (v1.19.0) / seed-bible/components / SwitchIndicator
Function: SwitchIndicator()
function SwitchIndicator(__namedParameters: {
class?: string;
className?: string;
on: boolean;
}): Element;A switch drawn for show only, inside a control that does the switching itself, such as a menu item with role="menuitemcheckbox" (a real switch can't go inside another control). Hidden from screen readers, so that control has to say whether it's on.
Parameters
| Parameter | Type | Description |
|---|---|---|
__namedParameters | { class?: string; className?: string; on: boolean; } | - |
__namedParameters.class? | string | - |
__namedParameters.className? | string | Extra classes, for placement. class and className both work. |
__namedParameters.on | boolean | - |
Returns
Element