UNPKG

primevue

Version:

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

27 lines (24 loc) 736 B
import { style } from '@primeuix/styles/tag'; import BaseStyle from '@primevue/core/base/style'; 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-warn': props.severity === 'warn', 'p-tag-danger': props.severity === 'danger', 'p-tag-secondary': props.severity === 'secondary', 'p-tag-contrast': props.severity === 'contrast', 'p-tag-rounded': props.rounded }]; }, icon: 'p-tag-icon', label: 'p-tag-label' }; var TagStyle = BaseStyle.extend({ name: 'tag', style: style, classes: classes }); export { TagStyle as default };