primevue-mirror/components/lib/checkbox/style/CheckboxStyle.js

44 lines
868 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const css = `
@layer primevue {
.p-checkbox {
position: relative;
display: inline-flex;
user-select: none;
vertical-align: bottom;
}
.p-checkbox-input {
cursor: pointer;
}
.p-checkbox-box {
display: flex;
justify-content: center;
align-items: center;
}
}
`;
const classes = {
root: ({ instance, props }) => [
'p-checkbox p-component',
{
'p-highlight': instance.checked,
'p-disabled': props.disabled,
2024-01-31 08:02:53 +00:00
'p-invalid': props.invalid,
2024-02-01 12:39:56 +00:00
'p-variant-filled': props.variant === 'filled'
}
],
box: 'p-checkbox-box',
input: 'p-checkbox-input',
icon: 'p-checkbox-icon'
};
export default BaseStyle.extend({
name: 'checkbox',
css,
2023-10-04 09:20:15 +00:00
classes
});