NoRedInk/noredink-ui/5.3.0

NOTE: this package is not compatible with Elm 0.19.1

Nri.Ui.Modal.V1

type alias Model msg =
{ title : String
, visibleTitle : Bool
, content : Html msg
, footerContent : List (Html msg)
, onDismiss : Maybe msg
, width : Maybe Int
}
  • onDismiss: If Nothing, the modal will not be dismissable
  • visibleTitle: If False, the title will still be used for screen readers
  • content: This will be placed in a width:100% div in the main area of the modal
  • footerContent: The optional items here will be stacked below the main content area and center-aligned. Commonly you will either give a list of Nri.Ui.Buttons, or an empty list.
info : Model msg -> Html msg
styles : Styles Never CssClasses b
warning : Model msg -> Html msg