Tag component is used to categorize content.
+Content of the tag is specified using the value property.
+An icon can also be configured to be displayed next to the value with the icon property.
+Different color options are available as severity levels.
+ +Content can easily be customized with the default slot instead of using the built-in display.
+Any property as style and class are passed to the main container element. Following are the additional properties to configure the component.
+Name | +Type | +Default | +Description | +
---|---|---|---|
value | +any | +null | +Value to display inside the tag. | +
severity | +string | +null | +Severity type of the tag. | +
rounded | +boolean | +false | +Whether the corners of the tag are rounded. | +
icon | +string | +null | +Icon of the tag to display next to the value. | +
Following is the list of structural style classes, for theming classes visit
Name | +Element | +
---|---|
p-tag | +Tag element | +
p-tag-rounded | +Rounded element | +
p-tag-icon | +Icon of the tag | +
p-tag-value | +Value of the tag | +
None.
+