25 lines
519 B
JavaScript
25 lines
519 B
JavaScript
import BaseStyle from 'primevue/base/style';
|
|
|
|
const inlineStyles = {
|
|
root: { position: 'relative' }
|
|
};
|
|
|
|
const classes = {
|
|
root: ({ instance, props }) => [
|
|
'p-inputswitch p-component',
|
|
{
|
|
'p-highlight': instance.checked,
|
|
'p-disabled': props.disabled,
|
|
'p-invalid': props.invalid
|
|
}
|
|
],
|
|
input: 'p-inputswitch-input',
|
|
slider: 'p-inputswitch-slider'
|
|
};
|
|
|
|
export default BaseStyle.extend({
|
|
name: 'inputswitch',
|
|
classes,
|
|
inlineStyles
|
|
});
|