pub fn Checkbox(_: CheckboxProps) -> ElementExpand description
A two-state box.
The widget is controlled: it draws exactly what checked says and reports what the
user asked for, so the value the Host holds and the box on screen cannot disagree.
What the mark looks like, and whether pressing it ripples or dims, is the design
system’s rule.
§Props
For details, see the props struct definition.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolchecked:boolenabled:boolon_change:EventHandler<bool>