pablen / toasty / Toasty.Defaults

This module provides a generic toast type with three variants (success, error and warning) each one supports a title and optional secondary text.

You need to load the provided Defaults.css file in your project. bounceInRight and fadeOutRightBig animations borrowed from Animate.css project by Daniel Eden.

See a demo.

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 text.

config : Toasty.Config msg

Default theme configuration.

view : Toast -> Html msg

Default theme view handling the three toast variants.