# 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 fn dispatch_toast(position: ToastPosition) { let toaster = ToasterInjection::expect_context(); toaster.dispatch_toast(view! { "Email sent" "This is a toast body" "Subtitle" "Footer" // Action // Action }.into_any(), ToastOptions::default().with_position(position)); }; view! { } ```