Skip to main content English Español Claro Oscuro Sistema

Badge

<gstock-badge> | GstockBadge

API

Propiedades

Nombre Descripción Reflects Tipo Por defecto
size The size of the badge. Reflects 'small' | 'medium' | 'large' 'medium'
color The color of the badge. Reflects 'brand' | 'neutral' | 'information' | 'success' | 'warning' | 'danger' 'brand'
placement The placement of the badge when used as an overlay inside a positioned container. Reflects 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | undefined -
pulse Makes the badge pulsate to draw attention. Reflects boolean false
updateComplete

A read-only promise that resolves when the component has finished updating.

Aprende más sobre atributos y propiedades .

Slots

Nombre Descripción
default The badge’s content.

Aprende más sobre slots .

Partes

Nombre Descripción
base The component’s base wrapper.

Aprende más sobre partes CSS .