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
27 lines (24 loc) • 776 B
JavaScript
import { style } from '@primeuix/styles/togglebutton';
import BaseStyle from '@primevue/core/base/style';
var classes = {
root: function root(_ref) {
var instance = _ref.instance,
props = _ref.props;
return ['p-togglebutton p-component', {
'p-togglebutton-checked': instance.active,
'p-invalid': instance.$invalid,
'p-togglebutton-sm p-inputfield-sm': props.size === 'small',
'p-togglebutton-lg p-inputfield-lg': props.size === 'large'
}];
},
content: 'p-togglebutton-content',
icon: 'p-togglebutton-icon',
label: 'p-togglebutton-label'
};
var ToggleButtonStyle = BaseStyle.extend({
name: 'togglebutton',
style: style,
classes: classes
});
export { ToggleButtonStyle as default };
//# sourceMappingURL=index.mjs.map