checkbox component

Drop-in semantic component. See examples, sizes, variants, and source.

Checkbox and switch toggle. Wrap an input type="checkbox" + span in a label.checkbox. Add switch for a toggle pill (with optional plain for no icons or minimal for slim style). Apply intent (primary, positive, negative, warning, info) and an optional soft variant. parent checkboxes get the indeterminate state automatically; error styling clears once the box is checked. Behaviour comes from checkbox.js.

Basic Checkboxes

Checkbox Sizes

Checkbox Colors

Soft Variant

Checkbox Group (Stacked)

Error State (Shows only when unchecked)

Note: Error styling automatically disappears when checkbox is checked

Indeterminate State (Hierarchical Selection)

Switch Component

Basic Switches

Airplane mode
Wi-Fi enabled
Bluetooth

Plain Switches (without icons)

Airplane mode
Wi-Fi enabled
Bluetooth

Switch Sizes

Tiny
Small
Default
Large
Big

Switch Colors

Primary
Positive
Warning
Negative
Info
Red
Orange
Yellow
Olive
Green
Teal
Blue
Violet
Purple
Pink
Brown
Grey
Black

Plain Switch Colors (without icons)

Primary
Positive
Warning
Negative
Info
Red
Orange
Yellow
Olive
Green
Teal
Blue
Violet
Purple
Pink
Brown
Grey
Black

Soft Switch Variant

Primary
Positive
Warning
Negative
Info
Red
Orange
Yellow
Olive
Green
Teal
Blue
Violet
Purple
Pink
Brown
Grey
Black

Minimal Switches (with icons)

Accept terms and conditions
Enable notifications
Remember my preferences

Minimal Plain Switches (without icons)

Simple toggle option
Clean minimal design
Ultra minimalist

Minimal Switch Sizes

Tiny
Small
Default
Large
Big

Minimal Switch Colors

Primary
Positive
Warning
Negative
Info
Red
Orange
Yellow
Olive
Green
Teal
Blue
Violet
Purple
Pink
Brown
Grey
Black

Switch Group (Stacked)

Push Notifications
Location Services
Analytics & Reporting
Dark Mode

Disabled States

Disabled Off
Disabled On
Disabled Plain
Disabled Minimal Off
Disabled Minimal On

Switch Error State (Shows only when off)

Enable two-factor authentication
Accept cookies (error removed when on)
Note: Error styling automatically disappears when switch is turned on

Class API Reference

Type Class Usage Notes
Base checkbox Required base — wrap an input + span Always required
checkboxes Group container — stacked layout Inherits size to children
Sizes xs Tiny Modifier on checkbox
sm Small Modifier on checkbox
(default) Medium No size class needed
xl Large Modifier on checkbox
lg Big Modifier on checkbox
Intents primary, positive, negative, warning, info, red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black Recolour the checked / on state Modifier on checkbox
Variant soft Lighter tinted background instead of solid intent Modifier on checkbox
Switch Modes switch Render as a toggle pill (with check / x icons by default) Modifier on checkbox
switch plain Toggle pill without inner icons Pair plain with switch
switch minimal Slim, low-profile toggle Pair minimal with switch
States error Red border — auto-clears once box is checked / switch is on Modifier on checkbox
parent Master checkbox — auto-toggles indeterminate from children Used inside a checkboxes group
disabled Disabled input HTML attribute on the input