Tag
<gstock-tag>
|
GstockTag
API
Properties
| Name | Description | Reflects | Type | Default |
|---|---|---|---|---|
color
|
Color of the tag. |
|
'neutral' | 'blue' | 'green' | 'red' | 'yellow'
|
'neutral'
|
href
|
Indicates a url to go to if the component is clicked. |
|
string
|
-
|
label
|
Alternative tag for component accessibility. |
string
|
''
|
|
rounded
|
Indicates if the tag is rounded. |
|
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 tag’s content. |
Learn more about slots .
CSS Parts
| Name | Description |
|---|---|
base
|
The component’s base wrapper. |
link
|
The link wrapper if the tag is clickable. |
Learn more about CSS parts .