Last active
April 28, 2020 15:31
-
-
Save turboMaCk/7198e7ec352eb708877c730aa5fbe29f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ContextView exposing (ContextItem, container, item) | |
import Html exposing (Html, Attribute) | |
import Html.Attributes as Attrs | |
type ContextItem = ContextItem | |
container : List (Attribute msg) -> (ContextItem -> List (Html msg)) -> Html msg | |
container attrs inner = | |
Html.div (Attrs.class "some-required-context-thing" :: attrs) <| | |
inner ContextItem | |
item : ContextItem -> List (Attribute msg) -> List (Html msg) -> Html msg | |
item ContextItem = Html.div |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment