Tangible Design System · @tangible/ui 0.2.29 · Interactive version · Markdown

Checkbox

import { Checkbox } from '@tangible/ui';

Interactive docs and examples: Checkbox in Storybook.

Checkbox props

Prop Type Default Description
checked? boolean
className? string
defaultChecked? boolean false
disabled? boolean
indeterminate? boolean false
label? ReactNode When provided, renders the checkbox inside a <label> with this content. When omitted, renders a bare <input> — you must provide an accessible name via aria-label, aria-labelledby, or a wrapping Field.Control + Field.Label.
onCheckedChange? (checked: boolean) => void

Also accepts the standard attributes of InputHTMLAttributes (data-*, aria-*, event handlers), passed to the element it renders.

Examples

Other stories: Disabled, Disabled Checked (interactive page).

Component API tokens

Read via fallback, never declared. Set one on an ancestor to restyle every instance under it.