2018-08-16 01:05:55 +03:00
|
|
|
module Examples.Alert exposing (example)
|
|
|
|
|
|
|
|
{-|
|
|
|
|
|
|
|
|
@docs example
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
2018-08-16 01:39:48 +03:00
|
|
|
import Assets exposing (assets)
|
2018-08-16 01:22:32 +03:00
|
|
|
import Html.Styled
|
2018-08-16 01:05:55 +03:00
|
|
|
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
|
|
|
|
import Nri.Ui.Alert.V2 as Alert
|
|
|
|
|
|
|
|
|
|
|
|
example : ModuleExample msg
|
|
|
|
example =
|
|
|
|
{ filename = "Nri/Alerts.elm"
|
|
|
|
, category = Messaging
|
|
|
|
, content =
|
2018-08-16 01:39:48 +03:00
|
|
|
[ Alert.error assets "This is an error"
|
|
|
|
, Alert.warning assets "This is a warning"
|
|
|
|
, Alert.tip assets "This is a tip"
|
|
|
|
, Alert.success assets "This is a success"
|
2018-08-16 01:05:55 +03:00
|
|
|
]
|
2018-08-16 01:22:32 +03:00
|
|
|
|> List.map Html.Styled.toUnstyled
|
2018-08-16 01:05:55 +03:00
|
|
|
}
|