pub fn Switch(_: SwitchProps) -> ElementExpand description
An on/off control that takes effect immediately, as <input type=checkbox role=switch>.
ยงProps
For details, see the props struct definition.
label:ControlNamesize:SwitchSizechecked:Option<ReadSignal<bool>>default_checked:boolonchange:Option<EventHandler<bool>>invalid:boolavailability:Availabilityclass:Option<String>attributes:Vec<Attribute>