Теги
PrimeNG/Tag (opens in a new tab)
Компонент тегов используется для классификации контента.
С чего начать
Подключите модуль
import { TagModule } from 'primeng/tag';
Встройте компонент с помощью тэга p-tag.
Tags
Pills
Icons
Свойства
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. |
style | object | null | Inline style of the component. |
styleClass | string | null | Style class of the component. |
Стилизация
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 |