Function freya_components::Input
source · pub fn Input<'a>(cx: Scope<'a, InputProps<'a>>) -> Element<'_>
Expand description
Input
component.
Props
See InputProps
.
Styling
Inherits the InputTheme
theme.
Example
fn app(cx: Scope) -> Element {
let value = use_state(cx, String::new);
render!(
label {
"Value: {value}"
}
Input {
value: value.get().clone(),
onchange: |e| {
value.set(e)
}
}
)
}