How to use?
Add the Thoth.Elmish.Toast
dependency to your project
dotnet add package Thoth.Elmish.Toast
Attach the toast system to your Elmish program
open Elmish
open Thoth.Elmish
Program.mkProgram init update view
|> Toast.Program.withToast Toast.render
|> Program.run
You 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.info
Last updated
Was this helpful?