primevue-mirror/components/inputtext/InputText.d.ts

39 lines
920 B
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
export interface InputTextProps extends InputHTMLAttributes {
/**
* Value of the component.
*/
modelValue?: Nullable<string>;
}
2022-09-14 11:26:01 +00:00
export interface InputTextSlots {}
2022-09-06 12:03:37 +00:00
export declare type InputTextEmits = {
/**
* Emitted when the value changes.
* @param {string} value - New value.
*/
'update:modelValue': (value: string | undefined) => 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 InputText extends ClassComponent<InputTextProps, InputTextSlots, InputTextEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
InputText: GlobalComponentConstructor<InputText>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* InputText renders a text field to enter data.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [InputText](https://www.primefaces.org/primevue/inputtext)
2022-09-06 12:03:37 +00:00
*
*/
export default InputText;