Tag
Short labels, often for filters
Demo
Legacy color values
The palette-named color values below still work and render the same colors as their corresponding spec role. Prefer the role-based names above for new code.
API
Tag
| Name | Description |
|---|---|
<s-tag>
|
Custom HTML tag, accepts a short string as content |
Attributes
| Name | Value | Required | Description |
|---|---|---|---|
color |
String |
Valid values for this attribute:
Legacy palette-named values are also accepted and map to the role above with the matching spec colors: |
|
aiassisted |
Boolean |
Displays an AI-assisted icon in the tag component to indicate AI-powered functionality. |
Properties
| Name | Value | Required | Description |
|---|---|---|---|
color |
String |
Valid values for this prop:
Legacy palette-named values are also accepted (see attribute description above). |
|
aiAssisted |
Boolean |
Displays an AI-assisted icon in the tag component to indicate AI-powered functionality. |
Slots
| Name | Required | Description |
|---|---|---|
content
|
|
Text content |
Demo
API
Tag
| Name |
|---|
<STag>
|
Props
| Name | Value | Required | Description |
|---|---|---|---|
color |
String |
Valid values for this prop:
Legacy palette-named values are also accepted (see Web Components section above). |
|
aiAssisted |
Boolean |
Displays an AI-assisted icon in the tag component to indicate AI-powered functionality. |
Slots
| Name | Required | Description |
|---|---|---|
content
|
|
Text content |
Skylab React links
Guidelines
Accessibility
If there is more than one tag on the page with the same text in it, they need to be distinguished from one another.
This can be done by adding aria-describedby to the tag which points to the id of a static text element on the page which distinguishes it.
Short labels
Use short, single-word values when possible. Users should be able to quickly identify keywords in a set of Tags and longer values make this difficult.
Design
Design resources can be found on the Skylab design documentation site: skylab.avalara.com