Options

A set of selectable options using radio buttons or checkboxes to mimic an on/off button pattern.

Dependencies

Uses:

Radio Options

Use <input type="radio"> buttons to only allow the user to select 1 option within a bunch of options.

Checkbox Options

Use <input type="checkbox"> buttons to allow a selection of options.

Use Width Utilities

Use width utilities to control the size of the options themselves.

Content Width

By default the component will take up all available space. To size the entire component based on the content of the options, just set .u-w-content on the parent.

Edge Cases

When only one option exists in the set, stretching the option may cause the selections to appear overly large. In this case, use half the available width to provide an acceptable limit.