UNPKG

@playcanvas/pcui

Version:

User interface component library for the web

25 lines (24 loc) 799 B
import { TextInput, TextInputArgs } from '../TextInput'; /** * The arguments for the {@link TextAreaInput} constructor. */ interface TextAreaInputArgs extends TextInputArgs { /** * Sets which directions the text area can be resized in. One of 'both', 'horizontal', * 'vertical' or 'none'. Defaults to 'none'. */ resizable?: 'horizontal' | 'vertical' | 'both' | 'none'; } /** * The TextAreaInput wraps a textarea element. It has the same interface as {@link TextInput}. */ declare class TextAreaInput extends TextInput { /** * Creates a new TextAreaInput. * * @param args - The arguments. */ constructor(args?: Readonly<TextAreaInputArgs>); protected _onInputKeyDown(evt: KeyboardEvent): void; } export { TextAreaInput, TextAreaInputArgs };