pub fn checkbox<Msg: Clone>(checked: bool) -> Checkbox<Msg>Expand description
Create a Checkbox in the given state.
Shorthand for Checkbox::new. Wire activation with
Checkbox::on_toggle and add a label with Checkbox::label:
checkbox( self.accept )
.label( "I accept the terms" )
.on_toggle( Msg::ToggleAccept )