jinjor/elm-inline-hover/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

InlineHover

Wrap any elements defined in Html

Make Special Elements

List ( String, String )
-> (List (Attribute msg) -> List (Html msg) -> Html msg)
-> List (Attribute msg)
-> List (Html msg)
-> Html msg

Make a special element that can notice hover state.

main =
  ul []
    [ hover styles li [] [ text "Hello" ]
    , hover styles li [] [ text "World" ]
    ]

styles =
  [("background", "#abd")]