UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

25 lines (22 loc) 891 B
import BaseStyle from 'primevue/base/style'; var css = "\n@layer primevue {\n .p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-tag-icon,\n .p-tag-value,\n .p-tag-icon.pi {\n line-height: 1.5;\n }\n\n .p-tag.p-tag-rounded {\n border-radius: 10rem;\n }\n}\n"; var classes = { root: function root(_ref) { var props = _ref.props; return ['p-tag p-component', { 'p-tag-info': props.severity === 'info', 'p-tag-success': props.severity === 'success', 'p-tag-warning': props.severity === 'warning', 'p-tag-danger': props.severity === 'danger', 'p-tag-rounded': props.rounded }]; }, icon: 'p-tag-icon', value: 'p-tag-value' }; var TagStyle = BaseStyle.extend({ name: 'tag', css: css, classes: classes }); export { TagStyle as default };