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

29 lines (26 loc) 884 B
import { style } from '@primeuix/styles/checkbox'; import BaseStyle from '@primevue/core/base/style'; var classes = { root: function root(_ref) { var instance = _ref.instance, props = _ref.props; return ['p-checkbox p-component', { 'p-checkbox-checked': instance.checked, 'p-disabled': props.disabled, 'p-invalid': instance.$pcCheckboxGroup ? instance.$pcCheckboxGroup.$invalid : instance.$invalid, 'p-variant-filled': instance.$variant === 'filled', 'p-checkbox-sm p-inputfield-sm': props.size === 'small', 'p-checkbox-lg p-inputfield-lg': props.size === 'large' }]; }, box: 'p-checkbox-box', input: 'p-checkbox-input', icon: 'p-checkbox-icon' }; var CheckboxStyle = BaseStyle.extend({ name: 'checkbox', style: style, classes: classes }); export { CheckboxStyle as default }; //# sourceMappingURL=index.mjs.map