pub struct TextInput {
pub custom_id: String,
pub label: String,
pub max_length: Option<u16>,
pub min_length: Option<u16>,
pub placeholder: Option<String>,
pub required: Option<bool>,
pub style: TextInputStyle,
pub value: Option<String>,
}
Expand description
Pop-up Component
that renders on modals.
Fields§
§custom_id: String
User defined identifier for the input text.
label: String
Text appearing over the input field.
max_length: Option<u16>
The maximum length of the text.
min_length: Option<u16>
The minimum length of the text.
Defaults to 0
.
placeholder: Option<String>
Placeholder for the text input.
required: Option<bool>
Whether the user is required to input a text.
Defaults to true
.
style: TextInputStyle
Style variant of the input text.
value: Option<String>
Pre-filled value for input text.