Function freya::components::GestureArea
source · pub fn GestureArea(props: GestureAreaProps) -> Option<VNode>
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}"
}
}
)
}