Search components

Find a component by name

Checkbox

Checkbox with indeterminate state.

By clicking this checkbox, you agree to the terms.

Invalid State

Set aria-invalid on the Checkbox and data-invalid on the Field wrapper to show the invalid styles.

Basic

Pair the checkbox with Field and FieldLabel for proper layout and labeling.

Description

Use FieldContent and FieldDescription for helper text.

By clicking this checkbox, you agree to the terms and conditions.

Disabled

Use the disabled prop to prevent interaction, and add data-disabled to the Field to dim its label.

Group

Use several horizontal Fields inside a FieldSet with a FieldLegend to build a checkbox list.

Show these items on the desktop:

Select the items you want to show on the desktop.

Table

Checkboxes select rows in a Table: a selected TableRow takes data-state="selected", and the header checkbox uses Refer's indeterminate prop when only some rows are selected.

NameEmailRole
Sarah Chensarah.chen@example.comAdmin
Marcus Rodriguezmarcus.rodriguez@example.comUser
Priya Patelpriya.patel@example.comUser
David Kimdavid.kim@example.comEditor

Boxed

Refer's CheckboxBoxed is a card-style checkbox, the one the apps use for choice cards. It takes CheckboxBoxedTitle and an optional CheckboxBoxedDescription, and turns primary-subtle with a primary-border when checked.

Installation

npx shadcn@latest add @refer/checkbox

Usage in the apps

Which apps install this component, whether their copy matches the registry, and which files import it.

PortalIn sync11 files
ArgusDiverged2 files
LandingDiverged2 files
PartnersDivergedNot imported

Imported by 15 files across the apps. From olympus-backend@2ee40d05e, Oct 26, 2026. โ€œIn syncโ€ means the app's copy matches this registry; refresh with npm run usage:build.