Function freya_components::Input
source · pub fn Input(_: InputProps) -> Element
Expand description
Input
component.
§Props
See InputProps
.
§Styling
Inherits the InputTheme
theme.
§Example
fn app() -> Element {
let mut value = use_signal(String::new);
rsx!(
label {
"Value: {value}"
}
Input {
value: value.read().clone(),
onchange: move |e| {
value.set(e)
}
}
)
}