Skip to content

co-switch

This content is not available in your language yet.

Ver código
<co-switch label="Notificaciones activas" checked></co-switch>

Props

PropAtributoTipoDefaultDescripción
checkedcheckedbooleanfalseWhether the switch is on
disableddisabledbooleanfalseDisabled state
helperTexthelper-textstring | undefinedHelper text displayed below
labellabelstring | undefinedLabel text displayed beside the switch
secondaryLabelsecondary-labelstring | undefinedSecondary label displayed on the right side
statusstatus"default" | "error" | "info" | "success" | "warning"'default'Validation status

Eventos

EventoDetailBubblesCancelableDescripción
coChangebooleanFired when the switch changes

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(label)
::part(secondary-label)
::part(thumb)
::part(track)

CSS Custom Properties

Este componente no expone CSS custom properties.