Skip to content

co-toggle-button

This content is not available in your language yet.

Ver código
<co-toggle-button label="Ejemplo"></co-toggle-button>

Props

PropAtributoTipoDefaultDescripción
disableddisabledbooleanfalse
iconLefticon-leftstring | undefined
iconRighticon-rightstring | undefined
labellabelstring | undefined
selectedselectedbooleanfalse
selectedIconWeightselected-icon-weight"fill" | "regular" | undefinedWhen set, the leading/trailing icon renders at this weight while the button is selected (e.g. 'fill' for the active segment of a track toggle).
sizesize"l" | "m" | "s" | "xs"'m'
valuevaluestring''
variantvariant"connected" | "track"'connected'Visual variant. 'track' renders the button as a detached rounded pill for a sunken toggle-button-group track. Normally set by the parent group.

Eventos

EventoDetailBubblesCancelableDescripción
coToggle{ value: string; selected: boolean; }

Slots

Este componente no expone slots.

CSS Parts

Este componente no expone CSS parts.

CSS Custom Properties

Este componente no expone CSS custom properties.