uncover-co/elm-widgets-alpha/19.0.0

NOTE: the latest version is 25.0.0

W.Modal

List (Attribute msg)
-> { isOpen : Bool
, onClose : Maybe msg
, content : List (Html msg)
}
-> Html msg

Togglable

If you don't want to manage your modal open state at all, use the toggable version.

W.Modal.viewToggable []
    { id = "toggable-modal"
    , content = [ text "Hello!" ]
    }


W.Modal.viewToggle "toggable-modal"
    [ W.Button.viewDummy []
        [ text "Click here to toggle modal" ]
    ]
List (Attribute msg)
-> { id : String
, content : List (Html msg)
}
-> Html msg
viewToggle : String -> List (Html msg) -> Html msg

Styles

zIndex : Int -> Attribute msg

Html

type Attribute msg