Optional
data: Partial<APITextInputComponent | TextInputComponentData>Readonly
dataSets the custom id for this text input.
The custom id to use
Sets the label for this text input.
The label to use
Sets the maximum length of text for this text input.
The maximum length of text for this text input
Sets the minimum length of text for this text input.
The minimum length of text for this text input
Sets the placeholder for this text input.
The placeholder to use
Sets whether this text input is required.
Optional
required: booleanWhether this text input is required
Sets the style for this text input.
The style to use
Sets the value for this text input.
The value to use
Serializes this builder to API-compatible JSON data.
This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.
Static
fromGenerated using TypeDoc
The API data associated with this component.