interface APITextInputComponent

external
export interface APITextInputComponent extends APIBaseComponent<ComponentType.TextInput>

https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-structure

external
custom_id : string

The custom id for the text input

external
label : string

Text that appears on top of the text input field, max 45 characters

optionalexternal
max_length? : number

Maximal length of text input

optionalexternal
min_length? : number

Minimal length of text input

optionalexternal
placeholder? : string

Placeholder for the text input

optionalexternal
required? : boolean

Whether or not this text input is required or not

external
style : TextInputStyle

One of text input styles

external
type : T

The type of the component

Inherited from: APIBaseComponent

optionalexternal
value? : string

The pre-filled text in the text input