pub fn Checkbox(_: CheckboxProps) -> ElementExpand description
A labelled native checkbox.
Pass checked to control it, or default_checked to let it hold its own state.
onchange receives the new checked value; a mixed checkbox becomes checked when
clicked, as the platform does.
ยงProps
For details, see the props struct definition.
label:Elementhint:Option<Element>checked:Option<ReadSignal<CheckState>>default_checked:CheckStateonchange:Option<EventHandler<bool>>invalid:boolavailability:Availabilityclass:Option<String>attributes:Vec<Attribute>