Skip to main content

Checkbox

Use a checkbox when the person can pick any number of options, or one yes-or-no choice that is saved with the form. Group related boxes in a fieldset with a legend. The slot replaces the label text when it needs markup, such as a link.

Notifications

Product updates and receipts.

Only for security alerts.

INV-1042

Radio

Use radios when the person must pick exactly one option from a short list. Radios with the same name work as one group, and the arrow keys move between them. For a long list, use a select.

Plan

For one person.

Up to 20 people.

Unlimited people and priority support.

Switch

Use a switch for a setting that takes effect at once, such as on and off. It is a checkbox with role="switch". layout="row" puts the text on the left and the switch on the right, for settings lists.

Every Monday at 08:00.

Try new features before they are released.

Sales report

States

Unchecked, checked, disabled and disabled and checked for each control. A disabled control is skipped by the keyboard. Add checked to start on.

Validation

With required, the browser blocks the form until the box is checked. error shows a message at once and sets aria-invalid="true", for an error the server returns. A radio has no error: an error belongs to the whole group.

Shipping is not available to your billing country.