pablen/toasty/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Toasty.Defaults

This package lets you easily show customizable toast notifications in your Elm apps. You will be able to trigger toasts as a side-effect of model updates by piping your update function return value through this library 'addToast' function.

Definition

type Toast
= Success String String
| Warning String String
| Error String String

This theme defines toasts of three variants: "Success", "Warning" and "Error". Each of them accepts a title and an optional secondary message.

config : Config msg

Default theme configuration.

view : Toast -> Html msg

Default theme view handling the three toast variants.