primevue-mirror/components/textarea/Textarea.d.ts

43 lines
1011 B
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { TextareaHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export interface TextareaProps extends TextareaHTMLAttributes {
/**
* Value of the component.
*/
modelValue?: string | undefined;
/**
* When present, height of textarea changes as being typed.
*/
autoResize?: boolean | undefined;
}
2022-09-14 11:26:01 +00:00
export interface TextareaSlots {}
2022-09-06 12:03:37 +00:00
export declare type TextareaEmits = {
/**
* Emitted when the value changes.
* @param {string} value - New value.
*/
'update:modelValue': (value: string) => void;
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class Textarea extends ClassComponent<TextareaProps, TextareaSlots, TextareaEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
Textarea: GlobalComponentConstructor<Textarea>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* Textarea is a multi-line text input element.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [Textarea](https://www.primefaces.org/primevue/textarea)
2022-09-06 12:03:37 +00:00
*
*/
export default Textarea;