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

Class ButtonProps

src/button.rs:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20/// [Documentation for properties](https://github.com/material-components/material-components-web-components/tree/master/packages/button#propertiesattributes)
21#[derive(Clone, PartialEq, Properties)]
22pub struct ButtonProps {
23 pub label: String,
24 #[prop_or_default]
25 pub icon: Option<String>,
26 #[prop_or_default]
27 pub raised: bool,
28 #[prop_or_default]
29 pub unelevated: bool,
30 #[prop_or_default]
31 pub outlined: bool,
32 #[prop_or_default]
33 pub dense: bool,
34 #[prop_or_default]
35 pub disabled: bool,
36 #[prop_or_default]
37 pub trailing_icon: bool,
38 #[prop_or_default]
39 pub onclick: Callback<()>,
40}
41
42// label=props.label
43// icon?=props.icon.as_ref()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected