On this page:

Switch

Note

An element that toggles between two binary options.

switchDefault

Design checklist

StatusItemDescription
✔️AnatomyIncludes descriptions of all parts of the component and its major variants.
✔️StatesIncludes all applicable interaction, display and value states.
✔️OptionsIncludes all relevant options (functional type, stylistic kind, semantic color, size, orientation, optional iconography, decorations, etc.)
✔️Color schemesIncludes both light and dark color schemes.
BehaviorsIncludes descriptions of behaviors related to other components and responsive behaviors related to media breakpoints, size (minimums and maximums), orientation, alignment, position and layout (wrapping, truncation, overflow).
Accessibility: Keyboard interactionsIncludes descriptions of all keyboard interactions, focus indication and navigation order.
Accessibility: Text contrastText meets a contrast ratio of at least 4.5:1 for small text and 3:1 for large text (WCAG 2.0 1.4.3) and/or a lightness contrast value of at least Lc 75 for standard text and Lc 60 for large text (APCA).
Accessibility: UI component contrastVisual information required to identify states and boundaries of active UI components has a contrast ratio against adjacent colors of at least 3:1 (WCAG 2.1 1.4.11) and/or a lightness contrast value of at least Lc 60 (APCA).
Usage guidelinesIncludes a list of recommended and discouraged usages.
Content guidelinesIncludes content standards and guidelines for how to write or format in-product content for the component.
InternationalizationIncludes support for various locales and bi-directionality (RTL).
Design tokensAll design attributes (color, typography, layout, animation, etc.) are available as design tokens.

Anatomy

anatomy

States

Interaction states

Enabled
enabled
Hovered
hovered
Pressed
pressed
Focused
focused
Disabled
disabled

Value states

Unchecked
unchecked
Checked
checked

Options

Color
defaultColor
Size
sizeSmall
sizeMedium
sizeLarge
Icon
iconOff
iconOn

Behaviors

[!missing] Section is incomplete