forms::textbox
Structs
Textbox
A text input field, with support for styling and font specification. Will be composited as a platform-specific
native element, for example an <input> element in the browser or a UITextField on iOS.
Properties
text
Type: Property<String>
Current text value.
background
Textbox background color.
placeholder
Type: Property<String>
Placeholder text shown when empty, when supported by the chassis.
stroke
Border stroke.
corner_radius
Type: Property<f64>
Corner radius, in pixels.
style
Text style.
outline
Focus outline stroke.
focus_on_mount
Type: Property<bool>
Requests focus when the textbox mounts.
multiline
Type: Property<bool>
Renders the textbox as a multiline text area when supported by the chassis.