Input
Description
The input
command renders an input field that users can type text into. The input's value can be accessed through a variable with the prefix input_
followed by the input's ID.
Syntax
Parameters
px-width
: Width of the input field in pixelspx-height
: Height of the input field in pixelsinput_id
: Unique identifier for the input (used to access its value)default_text
: Placeholder text shown when input is emptyborder_weight
: Thickness of the input's bordertext_colour
: Color of the input text (hex code or color name)
Usage
Important Notes
Input values are accessed using the
input_
prefix followed by the input's IDFor password fields, add the
hidden.
prefix to the input_id (v4.6.4+)The
hidden.
prefix is only used when creating the input, not when accessing its valueInput values are always strings; convert to numbers if needed
Each input should have a unique ID to avoid conflicts
Last updated
Was this helpful?