betagouv / elm-dsfr / BetaGouv.DSFR.Alert

Alerte

alert : AlertConfig msg -> AlertType -> AlertSize -> Accessibility.Html msg

Crée une alerte

Alert.small { title = Just "Titre", description = "Description" }
    |> Alert.alert (Just Close) Alert.error

Tailles d'alerte

small : { title : Maybe String, description : String } -> AlertSize

Alerte de petite taille

medium : { title : String, description : Maybe String } -> AlertSize

Alerte de taille medium

Types d'alerte

error : AlertType

Une alerte de type erreur

info : AlertType

Une alerte de type information

success : AlertType

Une alerte de type succès

warning : AlertType

Une alerte de type attention