Ir al contenido

co-checkbox

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

Props

PropAtributoTipoDefaultDescripción
checkedcheckedbooleanfalseWhether the checkbox is checked
disableddisabledbooleanfalseDisabled state
indeterminateindeterminatebooleanfalseIndeterminate state (partial selection) — visual only, overrides checked appearance
labellabelstring | undefinedLabel text displayed beside the checkbox
sizesize"large" | "small"'small'Size: small=16px, large=24px
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.