Skip to content
Tag content
Tag content Tag content
Tag content
Tag label Tag label Tag label Tag label Tag label Tag label Tag label Tag label Tag label Tag label
Tag - Web Component
The Tag component can be used imported from:
Playground
Parameters
The Web component uses the <z-tag>
tag:
By default, all the parameters are optional or can be set in different, except for the ones marked as required
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description | Slot | A11y |
---|---|---|---|---|
content | string | Defines the text for the tag. | default | |
fill | string | Defines the color for the tag. The default value is The possible values are: | ||
icon | string | Defines the icon for the tag. | ||
icon-right | boolean | Defines the icon position. |
Slots
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|---|---|
default | span | Content of the tag. |
Parameters use
content
The thing to be assigned to the tag. It uses the default
slot too.
icon
We can set icon in the tags:
icon-right
Also, the icons can be moved to the right using the icon-right
flag:
fill
The fill
parameter is used to define the color of the tag. Being omitted the default value is azure
.
The possible values are: teal
, moss
, lilac
, candy
, peach
, mint
,lime
, lemon
, powder-pink
Browser support
Detected engine:
Chromium
Webkit
Gecko