primevue-mirror/components/lib/togglebutton/style/ToggleButtonStyle.js

27 lines
736 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ instance, props }) => [
'p-button p-togglebutton p-component',
{
'p-focus': instance.focused,
'p-button-icon-only': instance.hasIcon && !instance.hasLabel,
'p-disabled': props.disabled,
'p-highlight': props.modelValue === true
}
],
icon: ({ instance, props }) => [
'p-button-icon',
{
'p-button-icon-left': props.iconPos === 'left' && instance.label,
'p-button-icon-right': props.iconPos === 'right' && instance.label
}
],
label: 'p-button-label'
};
export default BaseStyle.extend({
name: 'accordion',
2023-10-04 09:20:15 +00:00
classes
});