Switch

A setting that is on or off and takes effect right away. Specification: docs/components/switch.md · shared anatomy: docs/components/choice.md

States

A checkbox with role="switch", for settings that take effect immediately.

Visitors see a maintenance page.

Settings group

Security

Applies to every member of the workspace.

Members without it are signed out.

State text

Optional words for each state, in canon-choice-state after the label: canon-choice-state-off and canon-choice-state-on, one shown at a time. The label moves above and stays the switch's name, so it never changes; the words are aria-hidden="true", because assistive tech already announces on and off. Write the label as the setting and the words as its value. Click each one to see the words change.

Keeps your drafts on every device.

Size

data-size on the item or a container.

Edge cases

Right to left, in Arabic: the switch sits at the right and its thumb moves to the left when on. A long label wraps beside it.

Reports never include document content. Your legal team must approve this before it is turned on for regulated workspaces.

الأمان