primevue-mirror/components/lib/selectbutton/style/SelectButtonStyle.js

20 lines
515 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => ['p-selectbutton p-buttonset p-component', { 'p-disabled': props.disabled }],
button: ({ instance, option }) => [
'p-button p-component',
{
'p-highlight': instance.isSelected(option),
'p-disabled': instance.isOptionDisabled(option)
}
],
label: 'p-button-label'
};
export default BaseStyle.extend({
name: 'selectbutton',
classes,
loadStyle: () => {}
});