primevue-mirror/components/lib/radiobutton/style/RadioButtonStyle.js

22 lines
593 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ instance, props }) => [
'p-radiobutton p-component',
{
'p-highlight': instance.checked,
'p-disabled': props.disabled,
2024-01-31 08:02:53 +00:00
'p-invalid': props.invalid,
2024-02-02 11:46:26 +00:00
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
}
],
box: 'p-radiobutton-box',
input: 'p-radiobutton-input',
icon: 'p-radiobutton-icon'
};
export default BaseStyle.extend({
name: 'radiobutton',
2023-10-04 09:20:15 +00:00
classes
});