noredink-ui/styleguide-app/Examples/Alert.elm

25 lines
524 B
Elm
Raw Normal View History

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:05:55 +03:00
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
2019-03-28 23:50:02 +03:00
import Nri.Ui.Alert.V3 as Alert
2018-08-16 01:05:55 +03:00
example : ModuleExample msg
example =
2019-03-28 23:50:02 +03:00
{ filename = "Nri.Ui.Alert.V3.elm"
2018-08-16 01:05:55 +03:00
, category = Messaging
, content =
2019-03-29 00:00:53 +03:00
[ Alert.error "This is an error"
2018-08-16 01:39:48 +03:00
, Alert.warning assets "This is a warning"
, Alert.tip assets "This is a tip"
, Alert.success "This is a success"
2018-08-16 01:05:55 +03:00
]
}