Swirski UI

Forms

Checkbox

A native checkbox with a chunky Swirski mark, label and optional description.

Component

07

Request Changes

Import

import { Checkbox } from "@swirski/ui";

Playground

4 controls

Controls

Usage

<Checkbox
  label="Send launch updates"
  description="A compact, native checkbox with a custom Swirski mark."
  defaultChecked
/>

Props

7 generated
PropTypeDefaultNotes
containerClassNamestring-Adds classes to the root label wrapper.
descriptionReactNode-Optional supporting text below the label.
inputClassNamestring-Generated from CheckboxProps.
labelReactNode-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.
classNamestring-Adds classes to the hidden native checkbox input.
disabledbooleanfalseDisables interaction and dims the wrapper.
...inputPropsOmit<InputHTMLAttributes<HTMLInputElement>, "type">-Forwarded to the native checkbox input.
Previous: SelectNext: Switch