A
Auralix UI

Checkbox

iOS-style checkbox with smooth checkmark animation.

Preview

Installation

bash
npx auralix-ui add checkbox

Usage

Basic Checkbox

tsx
import { Checkbox } from "@/components/ui/Checkbox";

<Checkbox label="Accept terms" />

With Description

tsx
<Checkbox 
  label="Marketing emails" 
  description="Receive updates about new features" 
/>

Props

NameTypeDefaultDescription
checkedbooleanfalseWhether the checkbox is checked.
onChange(checked: boolean) => void-Callback when checked state changes.
labelstring-Label text for the checkbox.
descriptionstring-Optional description text.
size"sm" | "md" | "lg""md"Size of the checkbox.
disabledbooleanfalseWhether the checkbox is disabled.