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

25 lines
567 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => [
2024-03-20 07:00:27 +00:00
'p-selectbutton p-component',
{
'p-disabled': props.disabled,
'p-invalid': props.invalid
}
],
button: ({ instance, option }) => [
2024-03-20 07:00:27 +00:00
'p-selectbutton-button',
{
'p-highlight': instance.isSelected(option),
'p-disabled': instance.isOptionDisabled(option)
}
],
2024-03-20 07:00:27 +00:00
label: 'p-selectbutton-label'
};
export default BaseStyle.extend({
name: 'selectbutton',
2023-10-04 09:20:15 +00:00
classes
});