primevue-mirror/components/lib/inputswitch/style/InputSwitchStyle.js

25 lines
519 B
JavaScript
Raw Normal View History

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
});