Module

Halogen.Widgets.Toast

Package
purescript-halogen-widgets
Repository
afcondon/purescript-halogen-widgets

A single notification banner, coloured by Variant, with an optional dismiss affordance. Chrome-function tier — polymorphic in the caller's action i. (A stateful toast host that queues several of these is a future leaf component; this is the atom it would render.)

#Variant Source

data Variant

Closed set of severities — an ADT, not a String (contract: ADTs for closed alternatives).

Constructors

#ToastConfig Source

type ToastConfig i = { message :: String, onDismiss :: Maybe i, variant :: Variant }

#toast Source

toast :: forall w i. ToastConfig i -> HTML w i