UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

84 lines (74 loc) 1.99 kB
/** * * InputText renders a text field to enter data. * * [Live Demo](https://www.primevue.org/inputtext/) * * @module inputtext * */ import { InputHTMLAttributes } from 'vue'; import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; export declare type InputTextPassThroughOptionType = InputTextPassThroughAttributes | null | undefined; /** * Custom passthrough(pt) options. * @see {@link InputTextProps.pt} */ export interface InputTextPassThroughOptions { /** * Uses to pass attributes to the root's DOM element. */ root?: InputTextPassThroughOptionType; } /** * Custom passthrough attributes for each DOM elements */ export interface InputTextPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in InputText component. */ export interface InputTextProps extends InputHTMLAttributes { /** * Value of the component. */ modelValue?: Nullable<string>; /** * Uses to pass attributes to DOM elements inside the component. * @type {InputTextPassThroughOptions} */ pt?: InputTextPassThroughOptions; } /** * Defines valid slots in InputText component. */ export interface InputTextSlots {} /** * Defines valid emits in InputText component. */ export interface InputTextEmits { /** * Emitted when the value changes. * @param {string} value - New value. */ 'update:modelValue'(value: string | undefined): void; } /** * **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 */ declare class InputText extends ClassComponent<InputTextProps, InputTextSlots, InputTextEmits> {} declare module '@vue/runtime-core' { interface GlobalComponents { InputText: GlobalComponentConstructor<InputText>; } } export default InputText;