Adds balloon example

This commit is contained in:
Tessa Kelly 2021-11-05 11:59:39 -07:00
parent 0a0d008d02
commit cf319c6423
3 changed files with 9 additions and 2 deletions

View File

@ -112,6 +112,7 @@ preview_ navigate example =
, Container.html
(ClickableText.link example.name
[ ClickableText.href (exampleHref example)
, ClickableText.css [ Css.marginBottom (Css.px 10) ]
]
:: List.map (Html.map never) example.preview
)

View File

@ -29,7 +29,14 @@ example =
, state = init
, update = update
, subscriptions = \_ -> Sub.none
, preview = []
, preview =
[ Balloon.balloon
[ Balloon.onTop
, Balloon.navy
, Balloon.paddingPx 4
]
(text "This is a balloon.")
]
, view = view
}

View File

@ -15,7 +15,6 @@ preview icons =
[ css
[ Css.displayFlex
, Css.justifyContent Css.spaceBetween
, Css.marginTop (Css.px 8)
, Css.color Colors.gray45
]
]