Input¶
A single-line text input widget.
- Focusable
- Container
Examples¶
A Simple Example¶
The example below shows how you might create a simple form using two Input widgets.
Input Types¶
The Input widget supports a type parameter which will prevent the user from typing invalid characters.
You can set type to any of the following values:
| input.type | Description |
|---|---|
"integer" |
Restricts input to integers. |
"number" |
Restricts input to a floating point number. |
"text" |
Allow all text (no restrictions). |
If you set type to something other than "text", then the Input will apply the appropriate