Back to Component Browser

Checkbox

Quartz

lib/quartz/components/Checkbox/index.ts

Preview

Import

import { Checkbox } from '@/lib/quartz';

Props (9)

NameTypeRequiredDefaultDescription
descriptionstringoptionalThe description text for the `<Checkbox>`. Accessibly tied to the underlying `<input type="checkbox">`.
descriptionClassNamestringoptionalThe customized className for description text for the `<Checkbox>`.
childrenReactNodeoptionalAdditional content below the Checkbox
indeterminatebooleanoptionalWhether the indeterminate state will be shown. Overrides the visual of `checked` state when set to `true`.
childrenMarginTopUnitsenumoptional0The margin between the `children` and the description or label above it....
marginBottomUnitsSpacingUnitoptionalMargin bottom spacing in units. Useful when checkbox is wrapped in components like tooltips.
_quartzInternal_childrenTestIdstringoptional@internal Used for testing within Quartz.
refRef<HTMLInputElement>optionalAllows getting a ref to the component instance....
keyKeyoptional

Usage

Not used in any projects yet.