Seed Bible extension API (v1.19.0) / seed-bible/components / CheckboxIndicator
Function: CheckboxIndicator()
function CheckboxIndicator(__namedParameters: {
checked: boolean;
class?: string;
className?: string;
disabled?: boolean;
indeterminate?: boolean;
}): Element;The checkbox's box drawn for show only, inside a control that does the ticking itself, such as a selectable card with its own (visually hidden) checkbox. Hidden from screen readers, so that control has to say whether it's ticked. Like SwitchIndicator for Switch.
Parameters
| Parameter | Type | Description |
|---|---|---|
__namedParameters | { checked: boolean; class?: string; className?: string; disabled?: boolean; indeterminate?: boolean; } | - |
__namedParameters.checked | boolean | - |
__namedParameters.class? | string | - |
__namedParameters.className? | string | Extra classes, for placement. class and className both work. |
__namedParameters.disabled? | boolean | Dims the box, for a choice that can't be changed right now. |
__namedParameters.indeterminate? | boolean | Some but not all of what it stands for are ticked: shows a dash. |
Returns
Element