Skip to main content English Español Light Dark System

Tag

<gstock-tag> | GstockTag

API

Properties

Name Description Reflects Type Default
color Color of the tag. Reflects 'neutral' | 'blue' | 'green' | 'red' | 'yellow' 'neutral'
href Indicates a url to go to if the component is clicked. Reflects string -
label Alternative tag for component accessibility. string ''
rounded Indicates if the tag is rounded. Reflects 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 .