Skip to content

co-button

This content is not available in your language yet.

Ver código
<co-button label="Guardar" variant="primary"></co-button>
<co-button label="Cancelar" variant="stroke"></co-button>
<co-button label="Ver más" variant="ghost" icon-right="arrow-right"></co-button>

Props

PropAtributoTipoDefaultDescripción
disableddisabledbooleanfalseDisabled state
iconLefticon-leftstring | undefinedPhosphor icon name for the left position (e.g. "plus", "arrow-left")
iconRighticon-rightstring | undefinedPhosphor icon name for the right position (e.g. "arrow-right", "download")
iconWeighticon-weight"bold" | "duotone" | "fill" | "light" | "regular" | "thin"'regular'Icon weight applied to both iconLeft and iconRight
labellabelstring | undefinedText label (alternative to default slot)
shapeshape"rounded" | "square"'rounded'Shape: pill or straight corners
sizesize"l" | "m" | "s" | "xs"'m'Size
typetype"button" | "reset" | "submit"'button'HTML button type — use "submit" inside forms
variantvariant"ghost" | "primary" | "secondary" | "stroke"'primary'Visual style

Eventos

Este componente no emite eventos personalizados.

Slots

SlotDescripción
(default)Button label text

CSS Parts

PartDescripción
::part(button)

CSS Custom Properties

Este componente no expone CSS custom properties.