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

25 lines
533 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const inlineStyles = {
root: { position: 'relative' }
};
const classes = {
root: ({ instance, props }) => [
2024-04-07 10:21:03 +00:00
'p-toggleswitch p-component',
{
2024-04-07 10:21:03 +00:00
'p-toggleswitch-checked': instance.checked,
'p-disabled': props.disabled,
'p-invalid': props.invalid
}
],
2024-04-07 10:21:03 +00:00
input: 'p-toggleswitch-input',
slider: 'p-toggleswitch-slider'
};
export default BaseStyle.extend({
name: 'inputswitch',
classes,
inlineStyles
});