Badge
<gstock-badge>
|
GstockBadge
API
Properties
| Name | Description | Reflects | Type | Default |
|---|---|---|---|---|
empty
|
Show empty badge. |
boolean
|
false
|
|
size
|
The size of the badge. |
|
'small' | 'medium' | 'large'
|
'medium'
|
color
|
The color of the badge. |
|
'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' |
'danger'
|
'primary'
|
pulse
|
Makes the badge pulsate to draw attention. |
|
boolean
|
false
|
updateComplete
|
A read-only promise that resolves when the component has finished updating. |
Learn more about attributes and properties .
Slots
| Name | Description |
|---|---|
default
|
The badge’s content. |
Learn more about slots .
CSS Parts
| Name | Description |
|---|---|
base
|
The component’s base wrapper. |
Learn more about CSS parts .