Provides an accessible on/off control.
Use this page as both implementation documentation and a visual regression fixture. Compare the editor canvas with the published page at every responsive breakpoint.
Basic example
Enable example
Option examples
States
Unchecked and checked initial states with unique submitted field names.
Disabled setting
Enabled setting
Available options
| Option | Purpose and values |
|---|---|
| Label | Accessible description of the setting. |
| Field name | Submitted input name. |
| Default state | Checked or unchecked. |
| Advanced | HTML anchor and additional CSS classes are available when supported by the block. |
Editor workflow
- Select the outer component to configure system-wide behavior in the block sidebar.
- Select a nested item to configure content-specific behavior.
- Use List View to add, reorder, duplicate, or remove nested items.
- Preview desktop, tablet, and mobile widths before publishing.
Verification checklist
- Editor and front-end appearance match.
- Keyboard navigation and visible focus states work.
- Text, labels, and controls remain readable at 200% zoom.
- Small, medium, and large layouts behave as documented.
- Saved markup contains no unexpected inline styling or invalid blocks.
