# Toast ```rust demo let toaster = ToasterInjection::expect_context(); let on_click = move |_| { toaster.dispatch_toast(view! { "Email sent" "This is a toast body" "Subtitle" "Footer" // Action // Action }.into_any(), Default::default()); }; view! { } ``` ### Toast Positions ```rust demo let toaster = ToasterInjection::expect_context(); fn dispatch_toast(toaster: ToasterInjection, position: ToastPosition) { toaster.dispatch_toast(view! { "Email sent" "This is a toast body" "Subtitle" "Footer" // Action // Action }.into_any(), ToastOptions::default().with_position(position)); }; view! { } ```