Buttons & Controls
Buttons, switches, grouped toggles, and selection controls for Across apps.
Switch
On/off switches for binary settings. Includes app accent variants and a small size.
<label class="across-switch">
<input type="checkbox" class="across-switch__input">
<span class="across-switch__track">
<span class="across-switch__thumb"></span>
</span>
<span class="across-switch__label">Enable feature</span>
</label>
<!-- App accent variant -->
<label class="across-switch across-switch--work">...</label>
<label class="across-switch across-switch--share">...</label>
<!-- Small size -->
<label class="across-switch across-switch--sm">...</label>
Checkbox
Custom-styled checkboxes with indeterminate state support and descriptions.
Structure: <label class="across-checkbox"> wraps input, box, and label
Sizes: .across-checkbox--sm, default, .across-checkbox--lg
Modifiers: .across-checkbox--with-desc for description text
Indeterminate: Set via JS: checkbox.indeterminate = true
Radio Group
Radio button groups for single-select options with keyboard navigation.
Structure: .across-radio-group wraps individual .across-radio labels
Layout: Default is vertical; add .across-radio-group--horizontal for inline
Descriptions: Use .across-radio--with-desc with .across-radio__content wrapper