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

59 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-03-01 08:50:38 +00:00
/**
*
* InputText renders a text field to enter data.
*
* [Live Demo](https://www.primevue.org/inputtext/)
*
* @module inputtext
*
*/
2022-09-06 12:03:37 +00:00
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
2023-03-01 08:50:38 +00:00
/**
* Defines valid properties in InputText component.
*/
2022-09-06 12:03:37 +00:00
export interface InputTextProps extends InputHTMLAttributes {
/**
* Value of the component.
*/
modelValue?: Nullable<string>;
}
2023-03-01 08:50:38 +00:00
/**
* Defines valid slots in InputText component.
*/
2022-09-14 11:26:01 +00:00
export interface InputTextSlots {}
2022-09-06 12:03:37 +00:00
2023-03-01 08:50:38 +00:00
/**
* Defines valid emits in InputText component.
*/
export interface InputTextEmits {
2022-09-06 12:03:37 +00:00
/**
* Emitted when the value changes.
* @param {string} value - New value.
*/
2023-03-01 08:50:38 +00:00
'update:modelValue'(value: string | undefined): void;
}
2022-09-06 12:03:37 +00:00
2023-03-01 08:50:38 +00:00
/**
* **PrimeVue - InputText**
*
* _InputText renders a text field to enter data._
*
* [Live Demo](https://www.primevue.org/inputtext/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*/
export 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
}
}
export default InputText;