carboncloud/ui-library/7.1.0

NOTE: the latest version is 9.1.0

Ui.Dialog

Component of a Dialog

{ title : String
, labelId : String
, content : Html msg
, onClose : msg
, actionButtons :
List
( { onClick : Maybe msg
, color : ButtonColor
, emphasis : ButtonEmphasis
}
)
}
-> Html msg
View of a dialog


title           - text to be displayed at the top of the dialog
labelId         - identifier of the dialog, we need this for a11y
content         - content displayed just below the title
onClose         - action when the dialog should be closed
actionButtons   - list of buttons and actions that should be displayed at the bottom right corner of the dialog
type Label
= LabelledBy String
| Label String
A widget can either by labeled by itself of labelled by another element