Компоненты PrimeNG
Tag

Теги

PrimeNG/Tag (opens in a new tab)

Компонент тегов используется для классификации контента.

С чего начать

Подключите модуль

import { TagModule } from 'primeng/tag';

Встройте компонент с помощью тэга p-tag.

Tags

Pills

Icons

Свойства

NameTypeDefaultDescription
valueanynullValue to display inside the tag.
severitystringnullSeverity type of the tag.
roundedbooleanfalseWhether the corners of the tag are rounded.
iconstringnullIcon of the tag to display next to the value.
styleobjectnullInline style of the component.
styleClassstringnullStyle class of the component.

Стилизация

NameElement
p-tagTag element
p-tag-roundedRounded element
p-tag-iconIcon of the tag
p-tag-valueValue of the tag