Kanshō/Checkbox

Checkbox

Single checkboxes, labelled fields, grouped rows, invalid states, disabled states, and table selection.

Included in the single kansho full pack. Components are not offered as separate installs.

Base states

Unchecked
Checked
Indeterminate
Invalid
Disabled

Field with subtext

Required for source-aware summaries and code references.

Keeps the run private until a reviewer approves it.

Invalid and grouped rows

Applies the repository formatter before creating a patch.

Recommended

Required only when dependencies or remote docs must be fetched.

Select this only after confirming the destination.

Sensitive

Disabled because commits require explicit approval.

Locked

Table selection

Uses DataTable
Queued agent runs
RunStatusScope
Audit workspace scopesReadyRead-only
Draft release notesQueuedDocs
Rotate integration keysBlockedSecrets

Component documentation

Checkbox

components/ui/checkbox.tsx

Purpose

Provides a checkbox primitive plus labelled field and row compositions.

Appropriate use

Use for independent boolean choices or multi-selection where more than one option may be active.

Example

components/ui/checkbox.tsx has a representative live example in the "Base states" section on /components/checkbox.

States

Supports checked, unchecked, indeterminate, disabled, default, and error presentation.

API and props

Checkbox extends Radix checkbox props with status and ref; CheckboxField adds label, description, message, and className; CheckboxRow adds trailing content.

Dependencies

React, Radix Checkbox, Lucide icons, and the Kansho cn utility.

Accessibility

Radix supplies checkbox keyboard semantics; field compositions connect labels and validation messaging to the control.

Limitations

CheckboxField omits aria-label in favour of its visible label; standalone checkboxes still need an accessible name.

Source

Source: components/ui/checkbox.tsx.

Full pack

components/ui/checkbox.tsx is documented at /components/checkbox and installs only through the single Kansho full pack; no individual component install is offered.