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