pablen/toasty/1.1.0

NOTE: this package is not compatible with Elm 0.19.1

Toasty.Defaults

This module provides a generic toast type with three variants (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
= 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.