Function freya_components::GestureArea
source · pub fn GestureArea(props: GestureAreaProps) -> Element
Expand description
GestureArea
component.
Props
See GestureAreaProps
.
Example
fn app() -> Element {
let mut gesture = use_signal(|| "Tap here".to_string());
rsx!(
GestureArea {
ongesture: move |g| gesture.set(format!("{g:?}")),
label {
"{gesture}"
}
}
)
}