Modal component.
{ title : String
, trigger : msg
, enable : Basics.Bool
}
Modal button.
{ title : String
, size : Size
, content : Html msg
, close : Button msg
, save : Maybe (Button msg)
}
Modal configuration. If save is nothing, the save button is hidden.
Example
{ title = "My Modal title"
, size = Medium
, content = div [] [...]
, close = Button "Close" OnClose True
, save = Just <| Button "Save" OnSave True
}
Basics.Bool
Modal model (active or not).
Modal size.
default : msg -> msg -> String -> Html msg -> Config msg
Default configuration for the modal view.
view : Config msg -> Model -> Html msg
Modal view.