Skip to main content
Urbicon UI
source

Checkbox

Accessible checkboxes with indeterminate state, labels, validation, and form integration.

Required for signup
Loading...
Loading syntax highlighting...

01 Examples

Task list

Checkboxes inside a realistic task surface — the most common pattern for to-dos, settings, and bulk-selection rows.
Completed yesterday
Loading...
Loading syntax highlighting...

Helper & error

Helper and error text follow the same form-field contract as Input — `error` overrides `helper` when both are set.
We send at most one email per week
Loading...
Loading syntax highlighting...

02 Customization

Slot Class Overrides

Use slotClasses to tweak individual slots without going fully unstyled.
Loading...
Loading syntax highlighting...

Fully Custom (unstyled)

Strip all default styles with unstyled and rebuild from scratch. The box exposes data-state for conditional styling.
Loading...
Loading syntax highlighting...

03 Accessibility

Native Semantics

Built on a native <input type="checkbox"> for correct form behavior and assistive technology support. The indeterminate property automatically conveys the mixed state, and aria-checked="mixed" is set explicitly for maximum screen reader compatibility.

Labels & Descriptions

The label prop creates an associated <label>. Helper and error text are linked via aria-describedby, and errors set aria-invalid.

Keyboard

Tab to focus, Space to toggle. The focus ring uses focus-visible: for keyboard-only visibility and appears on the checkbox box via the peer pattern.

Color Contrast

Error and helper messages use text alongside color to convey state. The checkbox icon (check / minus) meets WCAG AA contrast against all intent backgrounds.

04 API Reference

22 props
22 props

No matching properties

No matching properties

05 Installation

Import

Loading...
Loading syntax highlighting...