Skip to main content
  1. Docs
  2. Components
  3. Forms

Checkbox

Yes or no, or several of a list. It waits for the form's Save; the whole row is the target.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span role="checkbox">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

Every Monday at 9 am.

summary.tsx
import { Checkbox } from "@qeetrix/react";

<Checkbox
  label="Email me a weekly summary"
  description="Every Monday at 9 am."
  defaultChecked
/>

02

On its own

Yes or no: the whole row is the target, the description says what it means.

Every Monday at 9 am.

03

A group

Several under one question: the group's label is its legend, its value the checked values.

Tell me about

04

Select all

A parent checkbox, with the group's allValues: a dash while some are checked.

Tell me about

05

Tiles

variant="tile": for choices that need explaining. The whole tile checks it.

Sign-in methods

Face, fingerprint or a security key.

From an authenticator app.

A link, valid for 10 minutes.

With two-step sign-in.

06

Invalid and disabled

The group's error says what's missing; a disabled option stays readable.

Tell me about

Only billing admins get these.

Choose at least one.
Next — CheckboxUsage