primevue-mirror/components/lib/inputtext/style/InputTextStyle.js

20 lines
555 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ instance, props }) => [
'p-inputtext p-component',
{
'p-filled': instance.filled,
'p-inputtext-sm': props.size === 'small',
'p-inputtext-lg': props.size === 'large',
2024-01-31 08:02:53 +00:00
'p-invalid': props.invalid,
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
}
]
};
export default BaseStyle.extend({
name: 'inputtext',
2023-10-04 09:20:15 +00:00
classes
});