mirror of
https://github.com/correl/elm-mdl.git
synced 2024-11-24 03:00:06 +00:00
18 lines
598 B
Elm
18 lines
598 B
Elm
module Demo.Badges where
|
|
|
|
import Material.Icon as Icon
|
|
import Material.Badge as Badge
|
|
import Html exposing (..)
|
|
import Html.Attributes exposing (..)
|
|
|
|
|
|
view : List Html
|
|
view =
|
|
[
|
|
h1 [][text "Badges"],
|
|
Icon.viewWithOptions "face" Icon.S18 [] { badgeInfo = Just (Badge.viewDefault "16")},
|
|
Icon.viewWithOptions "add" Icon.S18 [] { badgeInfo = Just (Badge.view { overlap = False, noBackground = False} "99")},
|
|
Icon.viewWithOptions "add" Icon.S18 [] { badgeInfo = Just (Badge.view { overlap = False, noBackground = True} "4")},
|
|
Icon.view "add" Icon.S18 [],
|
|
Icon.i "add"
|
|
]
|