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

Method classes

src/switch.rs:110–116  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

108
109impl Switch {
110 fn classes(&self) -> String {
111 if self.props.checked {
112 "mdc-switch mdc-switch--checked".into()
113 } else {
114 "mdc-switch mdc-switch".into()
115 }
116 }
117}
118
119// aria-checked=true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected