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) • 923 B
JavaScript
import { style } from '@primeuix/styles/radiobutton';
import BaseStyle from '@primevue/core/base/style';
var classes = {
root: function root(_ref) {
var instance = _ref.instance,
props = _ref.props;
return ['p-radiobutton p-component', {
'p-radiobutton-checked': instance.checked,
'p-disabled': props.disabled,
'p-invalid': instance.$pcRadioButtonGroup ? instance.$pcRadioButtonGroup.$invalid : instance.$invalid,
'p-variant-filled': instance.$variant === 'filled',
'p-radiobutton-sm p-inputfield-sm': props.size === 'small',
'p-radiobutton-lg p-inputfield-lg': props.size === 'large'
}];
},
box: 'p-radiobutton-box',
input: 'p-radiobutton-input',
icon: 'p-radiobutton-icon'
};
var RadioButtonStyle = BaseStyle.extend({
name: 'radiobutton',
style: style,
classes: classes
});
export { RadioButtonStyle as default };
//# sourceMappingURL=index.mjs.map