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) 674 B
import BaseStyle from 'primevue/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-warning': props.severity === 'warning', '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', value: 'p-tag-value' }; var TagStyle = BaseStyle.extend({ name: 'tag', classes: classes }); export { TagStyle as default };