Checkbox
iOS-style checkbox with smooth checkmark animation.
Preview
Installation
bash
npx auralix-ui add checkboxUsage
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
| Name | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | Whether the checkbox is checked. |
onChange | (checked: boolean) => void | - | Callback when checked state changes. |
label | string | - | Label text for the checkbox. |
description | string | - | Optional description text. |
size | "sm" | "md" | "lg" | "md" | Size of the checkbox. |
disabled | boolean | false | Whether the checkbox is disabled. |
On this page