slackline/element/plain_text_input
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Attributes for element.plain_text_input.
Values
pub fn dispatch_action_config(
dispatch_action_config: block.DispatchActionConfig,
) -> block.Attr(block.PlainTextInputElement)
When the element dispatches block_actions payloads.
pub fn focus_on_load(
focus_on_load: Bool,
) -> block.Attr(block.PlainTextInputElement)
Whether to auto focus this element in a view. Defaults to false.
pub fn initial_value(
initial_value: String,
) -> block.Attr(block.PlainTextInputElement)
The initial value.
pub fn max_length(
max_length: Int,
) -> block.Attr(block.PlainTextInputElement)
Maximum input length, 1 to 3000.
pub fn min_length(
min_length: Int,
) -> block.Attr(block.PlainTextInputElement)
Minimum input length, 0 to 3000.
pub fn multiline(
multiline: Bool,
) -> block.Attr(block.PlainTextInputElement)
Whether to show a larger textarea. Defaults to false.
pub fn placeholder(
placeholder: String,
) -> block.Attr(block.PlainTextInputElement)
Placeholder text. Maximum 150 characters.