pub fn Switch(_: SwitchProps) -> ElementExpand description
An on/off control. The same contract as Checkbox: the Host owns the value, and the
track, the thumb and the way the change is animated belong to the design system.
ยง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>