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

31 lines (25 loc) 1.11 kB
'use strict'; var BaseStyle = require('primevue/base/style'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle); 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__default["default"].extend({ name: 'tag', css: css, classes: classes }); module.exports = TagStyle;