let text_input = |
#placeholder: &string = &"",
#on_input: fn(s: string) -> Any = |_| null,
#on_submit: fn(e: null) -> Any = |_| null,
#is_secure: &bool = &false,
#width: &Length = &`Fill,
#padding: &Padding = &`All(5.0),
#size: &[f64, null] = &null,
#font: &[Font, null] = &null,
#disabled: &bool = &false,
value: &string
| -> Widget `TextInput({ value, placeholder, on_input: &on_input, on_submit: &on_submit, is_secure, width, padding, size, font, disabled })