Checkbox

Stable

A control that allows the user to toggle between checked and not checked.

Examples

Basic Usage

tsx
<Checkbox label="Accept terms and conditions" />

With Description

tsx
<Checkbox
  label="Enable Notifications"
  description="Receive alerts about network anomalies."
/>

Neon Variants

tsx
<div className="flex flex-col gap-4">
  <Checkbox variant="neon" label="Cyan Mode" defaultChecked />
  <Checkbox variant="neonPurple" label="Purple Mode" defaultChecked />
  <Checkbox variant="neonGreen" label="Green Mode" defaultChecked />
</div>

Indeterminate State

tsx
<Checkbox indeterminate label="Select All Logs" />

API Reference

PropertyDescriptionTypeDefault
variantColor and glow styling."default" | "neon" | "neonPurple" | "neonGreen"-
checkboxSizeSize of the checkbox square."sm" | "md" | "lg"-
labelText label rendered next to the checkbox.string-
descriptionSecondary text rendered below the label.string-
indeterminateForces the indeterminate (minus) icon state.boolean-