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

39 lines
960 B
Elm
Raw Normal View History

2019-10-25 00:29:19 +03:00
module Examples.Pennant exposing (example)
{-|
@docs example
-}
import Category exposing (Category(..))
2019-10-25 00:29:19 +03:00
import Css exposing (..)
2020-03-31 23:33:05 +03:00
import Example exposing (Example)
2019-10-25 00:29:19 +03:00
import Html.Styled as Html exposing (Html)
import Html.Styled.Attributes exposing (css)
import Nri.Ui.Fonts.V1 as Fonts
2020-03-17 22:53:50 +03:00
import Nri.Ui.Pennant.V2 as Pennant
import Nri.Ui.Svg.V1 as Svg
2019-10-25 00:29:19 +03:00
{-| -}
2020-03-31 23:33:05 +03:00
example : Example () ()
2019-10-25 00:29:19 +03:00
example =
2020-03-17 22:53:50 +03:00
{ name = "Nri.Ui.Pennant.V2"
2020-03-31 23:33:05 +03:00
, categories = List.singleton Icons
, state = ()
, update = \_ state -> ( state, Cmd.none )
, subscriptions = \_ -> Sub.none
, view =
\_ ->
[ Html.div [ css [ Css.displayFlex, Css.width (Css.px 200) ] ]
[ Pennant.premiumFlag
|> Svg.withHeight (Css.px 60)
|> Svg.toHtml
, Pennant.disabledPremiumFlag
|> Svg.withHeight (Css.px 60)
|> Svg.toHtml
]
2019-10-25 00:29:19 +03:00
]
}