Documentation Index
Fetch the complete documentation index at: https://mintlify.com/discord/discord-interactions-js/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheTextStyleTypes enum defines the layout and appearance of text input components used in modals and forms.
Enum Values
Text Input Styles
SHORT (1)
Single-line text input field. Use Cases:- Short text entries
- Names, titles, or single words
- Limited character inputs
PARAGRAPH (2)
Multi-line text input field. Use Cases:- Long-form text
- Descriptions or comments
- Multiple sentences or paragraphs
Usage Examples
Short Text Input
Paragraph Text Input
Complete Modal Example
Style Comparison
| Style | Lines | Best For | Max Length |
|---|---|---|---|
| SHORT | Single | Names, titles, short answers | Typically 1-100 chars |
| PARAGRAPH | Multiple | Descriptions, feedback, long text | Typically 100+ chars |
Properties Available with Text Inputs
Text input components support the following properties regardless of style:custom_id- Unique identifier (required)label- Field label shown to users (optional)placeholder- Placeholder text (optional)min_length- Minimum character length (optional)max_length- Maximum character length (optional)required- Whether the field is required (optional, defaults to true)value- Pre-filled value (optional)