Ir al contenido

co-tab

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

Props

PropAtributoTipoDefaultDescripción
badgebadgestring | undefinedOptional count/badge pill rendered after the label
disableddisabledbooleanfalseDisabled state
iconLefticon-leftstring | undefinedLeft icon (Phosphor name)
iconRighticon-rightstring | undefinedRight icon (Phosphor name)
labellabelstring''Tab label
selectedselectedbooleanfalseWhether this tab is active/selected
sizesize"large" | "small"'small'Size
valuevaluestring''Tab value (used for selection)
variantvariant"pill" | "segmented" | "underline"'pill'Visual variant: filled pill (default), underline tab, or segmented-control pill

Eventos

EventoDetailBubblesCancelableDescripción
coTabSelectstringEmitted when tab is clicked

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(badge)
::part(tab)

CSS Custom Properties

Este componente no expone CSS custom properties.