Tag
Installation
Usage
<rh-tag color="red">Red Hat</rh-tag>
rh-tag
Slot Name | Description |
---|---|
icon |
Contains the labels's icon, e.g. web-icon-alert-success. |
undefined |
Must contain the text for the label. |
DOM Property | Description | Type | Default |
---|---|---|---|
icon |
The icon to display in the label. |
|
|
variant |
The variant of the label. |
|
|
color |
The color of the label. |
|
|
None
Event Name | Description |
---|---|
close |
when a removable label's close button is clicked |
Part Name | Description |
---|---|
icon |
container for the label icon |
CSS Property | Description | Default |
---|---|---|
--rh-tag-margin-inline-end |
The margin at the end of the direction parallel to the flow of the text. |
4px
|
--rh-tag-padding-block-start |
The padding at the start of the direction perpendicular to the flow of the text. |
4px
|
--rh-tag-padding-block-end |
The padding at the end of the direction perpendicular to the flow of the text. |
4px
|
--rh-tag-padding-inline-start |
The padding at the start of the direction parallel to the flow of the text. |
8px
|
--rh-tag-padding-inline-end |
The padding at the end of the direction parallel to the flow of the text. |
8px
|
--pf-icon--size |
—
|
None
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.