COCO component style guide

Use a switch for an immediately applied on/off setting. Preserve the native checkbox so keyboard, focus, checked, disabled, and right-to-left behavior work.

Show code

Switches Modifiers

  • Put the label and switch at opposite edges.

  • Vertically center the control and label.

  • Align the control with the first line.

  • Use the small switch size.

  • Use the large switch size.

Search

Code Audit Results