mirror of
https://github.com/correl/elm-mdl.git
synced 2024-12-18 03:00:11 +00:00
Adds an Icon with badge example
This commit is contained in:
parent
d329eb445f
commit
abd5fdf1b8
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@ import Html exposing (..)
|
|||
import Html.Attributes exposing (class, style, key)
|
||||
import Material.Badge as Badge
|
||||
import Material.Style exposing (..)
|
||||
|
||||
import Material.Icon as Icon
|
||||
-- VIEW
|
||||
|
||||
view : List Html
|
||||
|
@ -23,5 +23,7 @@ view = [ div [][p [][]
|
|||
, p [][]
|
||||
, styled span [Badge.withBadge "Δ"] [ ] [ text "Span with HTML symbol - Delta" ]
|
||||
, p [][]
|
||||
, span [][text "Icon with badge"]
|
||||
, Icon.view "face" [Icon.iconSize Icon.S24, Badge.withBadge "33", Badge.overlap ] []
|
||||
]
|
||||
]
|
Loading…
Reference in a new issue