Creates a new text input from API data.
Optional
data: APITextInputComponent & { type?: TextInput }The API data to create this text input with
Clears the id of this component, defaulting to a default incremented id.
Whether this is equal to another structure.
Sets the custom id for this text input.
The custom id to use
Sets the id (not the custom id) for this component.
The id for this component
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 value for this text input.
The value to use
Serializes this builder to API-compatible JSON data.
A builder that creates API-compatible JSON data for text inputs.