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

Method view

src/banner.rs:79–99  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

77 }
78
79 fn view(&self) -> Html {
80 html! {
81 <div class="mdc-banner" role="banner">
82 <div class="mdc-banner__content"
83 role="status"
84 aria-live="assertive">
85 <div class="mdc-banner__graphic-text-wrapper">
86 <div class="mdc-banner__text">
87 { "There was a problem processing a transaction on your credit card." }
88 </div>
89 </div>
90 <div class="mdc-banner__actions">
91 <button type="button" class="mdc-button mdc-banner__primary-action">
92 <div class="mdc-button__ripple"></div>
93 <div class="mdc-button__label">{ "Fix it" }</div>
94 </button>
95 </div>
96 </div>
97 </div>
98 }
99 }
100}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected