MCPcopy Create free account
hub / github.com/angular-rust/yew-components / CheckboxProps

Class CheckboxProps

src/checkbox.rs:26–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24/// - [Events](https://github.com/material-components/material-components-web-components/tree/master/packages/checkbox#events)
25#[derive(Clone, PartialEq, Properties)]
26pub struct CheckboxProps {
27 #[prop_or_default]
28 pub checked: bool,
29 #[prop_or_default]
30 pub indeterminate: bool,
31 #[prop_or_default]
32 pub disabled: bool,
33 #[prop_or_default]
34 pub value: String,
35 #[prop_or_default]
36 pub reduced_touch_target: bool,
37 /// Binds to `change` event on `checkbox`
38 ///
39 /// See events docs to learn more.
40 #[prop_or_default]
41 pub onchange: Callback<bool>,
42}
43
44impl Component for Checkbox {
45 type Message = ();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected