Skip to content

co-checkbox

This content is not available in your language yet.

Ver código
<co-checkbox label="Acepto los términos"></co-checkbox>

Props

PropAtributoTipoDefaultDescripción
appearanceappearance"default" | "overlay"'default'Visual appearance: - 'default' — the standard labeled form checkbox (unchanged). - 'overlay' — a standalone frosted rounded selection chip (Drive), no label, bespoke SVG glyphs.
checkedcheckedbooleanfalseWhether the checkbox is checked
disableddisabledbooleanfalseDisabled state
indeterminateindeterminatebooleanfalseIndeterminate state (partial selection) — visual only, overrides checked appearance
labellabelstring | undefinedLabel text displayed beside the checkbox
onColoron-colorstring | undefinedAccent fill color used when checked/indeterminate. Defaults to the current design token.
sizesize"large" | "medium" | "small"'small'Size: small=16px, medium=20px, large=24px (overlay appearance: small=20px, medium/large=22px)
valuevaluestring''Value for checkbox group usage

Eventos

EventoDetailBubblesCancelableDescripción
coChangebooleanFired when the value changes

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(box)
::part(label)

CSS Custom Properties

Este componente no expone CSS custom properties.