mc706 / toasty-bootstrap / Toasty.Defaults

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

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
    = Info (Maybe String) String
    | Success (Maybe String) String
    | Warning (Maybe String) String
    | Error (Maybe String) String

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

config : Toasty.Config msg

Default theme configuration.

view : Toast -> Html msg

Default theme view handling the three toast variants.