primevue-mirror/packages/primevue/scripts/components/textarea.js

47 lines
1.2 KiB
JavaScript

const TextareaProps = [
{
name: 'modelValue',
type: 'any',
default: 'null',
description: 'Value of the component.'
},
{
name: 'autoResize',
type: 'boolean',
default: 'false',
description: 'When present, height of textarea changes as being typed.'
},
{
name: 'invalid',
type: 'boolean',
default: 'false',
description: 'When present, it specifies that the component should have invalid state style.'
},
{
name: 'variant',
type: 'string',
default: 'null',
description: 'Specifies the input variant of the component.'
},
{
name: 'pt',
type: 'any',
default: 'null',
description: 'Used to pass attributes to DOM elements inside the component.'
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
module.exports = {
textarea: {
name: 'Textarea',
description: 'Textarea is a multi-line text input element.',
props: TextareaProps
}
};