Form components
Text Input
Used to set a value that is a single line of text.
Usage ¶
Validation states ¶
Caption ¶
Leading / Trailing visuals ¶
Sizes ¶
Counters ¶
If countermin
or countermax
are set, a counter will be shown.
Component arguments ¶
Input
¶
Argument | Type | Description |
---|---|---|
label |
str |
Required. Label for the input. |
id |
str |
Optional. ID of the input. Automatically generated if not set. |
type |
str |
Optional. Type of the input. Default is "text". |
caption |
str |
Optional. Caption for the input. |
size |
str |
Optional. Size of the input. Can be "medium" or "large". |
block |
bool |
Optional. If true, the input will take the full width of its parent. |
required |
bool |
Optional. If true, the input will be marked as required. |
disabled |
bool |
Optional. If true, the input will be disabled. |
loading |
bool |
Optional. If true, the input will show a loading spinner. |
valid |
str |
Optional. Positive validation message to show below the input. |
invalid |
str |
Optional. Negative validation message to show below the input. |
countermin |
int |
Optional. Minimum value for the counter. |
countermax |
int |
Optional. Maximum value for the counter. |
leading |
str |
Optional. Name of the Material Symbol icon to show before the input. |
leading_text |
str |
Optional. Text to show instead of the leading icon. |
trailing |
str |
Optional. Name of the Material Symbol icon to show after the input. |
trailing_text |
str |
Optional. Text to show instead of the trailing icon. |
Components ¶
Component |
File |
Source |
---|---|---|
Input |
input.jinja |
|
input.css |
||
form-field.css |