Switch

A switch drawn on or off with an optional label, for showing the state of a setting in an email.

Basic

Set checked to draw the switch on, and pass a label to name the setting beside it.

Size

Set size to small for a shorter track.

Disabled

Set disabled to fade the switch, for a setting the reader cannot change.

Content inside

Pass checkedChildren and unCheckedChildren to put a word or an icon inside the track for each state.

Color

Set color to a status or a palette name to paint the on track in it.

Shape

Set shape to square for a track with small rounded corners instead of a pill.