1. Docs
  2. components
  3. Checkbox

Checkbox

A Checkbox allows users to select multiple items from a list of individual items, or to mark one individual item as selected.

Checkboxes can be built with the <input> HTML element, but this can be difficult to style. Checkbox helps achieve accessible checkboxes that can be styled as needed.

Installation

This components uses the following components, which you also need to install:

Copy and paste the following code into your project: checkbox.tsx

Loading...

Update the import paths to match your project setup.

Examples

Basic

Value

Indeterminate

Validation

Disabled

Read-only