Skip to content

co-icon-button

This content is not available in your language yet.

Ver código
<co-icon-button icon="bell" variant="outlined"></co-icon-button>
<co-icon-button icon="gear" variant="ghost"></co-icon-button>
<co-icon-button icon="plus" variant="primary"></co-icon-button>

Props

PropAtributoTipoDefaultDescripción
disableddisabledbooleanfalseDisabled state
iconiconstring | undefinedPhosphor icon name (e.g. "plus", "gear"). Renders co-icon inside the button.
iconWeighticon-weight"bold" | "duotone" | "fill" | "light" | "regular" | "thin"'regular'Icon weight
labellabelstring''Accessible label
shapeshape"rounded" | "square"'rounded'Shape: pill or straight corners
sizesize"lg" | "md" | "sm" | "xl" | "xs" | "xxs"'md'Size — maps to container dimensions: xl=80, lg=64, md=56, sm=48, xs=32, xxs=24
variantvariant"filled" | "outlined"'filled'filled = dark background (negro), outlined = light background (blanco + border) Matches Figma: Secundario → filled, Primario → outlined

Eventos

Este componente no emite eventos personalizados.

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(button)

CSS Custom Properties

Este componente no expone CSS custom properties.