How to use?
Add the Thoth.Elmish.Toast dependency to your project
dotnet add package Thoth.Elmish.Toastpaket add Thoth.Elmish.ToastAttach the toast system to your Elmish program
open Elmish
open Thoth.Elmish
Program.mkProgram init update view
|> Toast.Program.withToast Toast.render
|> Program.runYou can now send Toast from any command in your program.
open Thoth.Elmish
let update msg model =
match msg with
| DemoInfo ->
model, Toast.message "I am toast of type Info"
|> Toast.title "Info"
|> Toast.infoLast updated
Was this helpful?