mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-17 18:51:31 +03:00
32 lines
920 B
Elm
32 lines
920 B
Elm
module Examples.BannerAlert exposing (example)
|
|
|
|
{-|
|
|
|
|
@docs example
|
|
|
|
-}
|
|
|
|
import Html.Styled exposing (h3, text)
|
|
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
|
|
import Nri.Ui.BannerAlert.V3 as BannerAlert
|
|
|
|
|
|
example : ModuleExample msg
|
|
example =
|
|
{ filename = "Nri.Ui.BannerAlert.V3.elm"
|
|
, category = Messaging
|
|
, content =
|
|
[ h3 [] [ text "error" ]
|
|
, BannerAlert.error "This is an error message!"
|
|
, h3 [] [ text "neutral" ]
|
|
, BannerAlert.neutral "This is a neutral message!"
|
|
, h3 [] [ text "success" ]
|
|
, BannerAlert.success
|
|
"""This is a success message!
|
|
Let's see what happens if there is a very long message!
|
|
Wow, how successful! You're the biggest success I've ever seen!
|
|
You should feel great about yourself! Give yourself a very big round of applause!
|
|
"""
|
|
]
|
|
}
|