all repos

onasty @ cd3e3abcf8ccb361f3e34967367883087abba65b

a one-time notes service

onasty/web/src/Components/Error.elm(view raw)

1
2
3
4
5
6
7
8
9
10
module Components.Error exposing (error)

import Html as H exposing (Html)
import Html.Attributes as A


error : String -> Html msg
error errorMsg =
    H.div [ A.class "bg-red-50 border border-red-200 rounded-md p-4" ]
        [ H.p [ A.class "text-red-800 text-sm" ] [ H.text errorMsg ] ]