Skip to main content

Switch

Function Switch 

Source
pub fn Switch(_: SwitchProps) -> Element
Expand 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.