Controls
Forms
Checkbox
A native checkbox with a chunky Swirski mark, label and optional description.
Component
07
Import
import { Checkbox } from "@swirski/ui";Playground
Usage
<Checkbox
label="Send launch updates"
description="A compact, native checkbox with a custom Swirski mark."
defaultChecked
/>Props
| Prop | Type | Default | Notes |
|---|---|---|---|
containerClassName | string | - | Adds classes to the root label wrapper. |
description | ReactNode | - | Optional supporting text below the label. |
inputClassName | string | - | Generated from CheckboxProps. |
label | ReactNode | - | Visible label rendered beside the checkbox. |
size | 'sm' | 'md' | 'lg' | "md" | Generated from CheckboxProps. |
tone | 'blue' | 'yellow' | 'red' | "yellow" | Generated from CheckboxProps. |
variant | 'default' | 'card' | "default" | Generated from CheckboxProps. |
className | string | - | Adds classes to the hidden native checkbox input. |
disabled | boolean | false | Disables interaction and dims the wrapper. |
...inputProps | Omit<InputHTMLAttributes<HTMLInputElement>, "type"> | - | Forwarded to the native checkbox input. |