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

20 lines
480 B
JavaScript

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',
'p-invalid': props.invalid,
'p-variant': props.variant === 'filled'
}
]
};
export default BaseStyle.extend({
name: 'inputtext',
classes
});