| 30 | /// - [Events](https://github.com/material-components/material-components-web-components/tree/master/packages/icon-button-toggle#events) |
| 31 | #[derive(Clone, PartialEq, Properties)] |
| 32 | pub struct IconButtonToggleProps { |
| 33 | #[prop_or_default] |
| 34 | pub on: bool, |
| 35 | #[prop_or_default] |
| 36 | pub on_icon: String, |
| 37 | #[prop_or_default] |
| 38 | pub off_icon: String, |
| 39 | #[prop_or_default] |
| 40 | pub label: String, |
| 41 | #[prop_or_default] |
| 42 | pub disabled: bool, |
| 43 | /// Binds to `MDCIconButtonToggle:change`. |
| 44 | /// |
| 45 | /// Callback's parameter is the `isOn` value passed |
| 46 | /// |
| 47 | /// See events docs to learn more. |
| 48 | #[prop_or_default] |
| 49 | pub onchange: Callback<bool>, |
| 50 | #[prop_or_default] |
| 51 | pub children: Children, |
| 52 | } |
| 53 | |
| 54 | impl Component for IconButtonToggle { |
| 55 | type Message = (); |
nothing calls this directly
no outgoing calls
no test coverage detected