Skip to main content

Button

Function Button 

Source
pub fn Button<F, G>(__arg0: Modifier, __arg1: F, __arg2: G) -> NodeId
where F: FnMut() + 'static, G: FnMut() + 'static,
Expand description

Creates a button widget with click handling.

This is now implemented using LayoutNode with FlexMeasurePolicy (column layout), following the Jetpack Compose pattern of using Layout for all widgets. The clickable behavior is provided via the .clickable() modifier, which is part of the modern modifier chain system.