mbr/elm-chadcn/1.0.0

ChadCn.Alert

Provides an alert component.

The implementation follows the shadcn Base UI structure and Nova defaults.

type Config msg

Describes an alert and its presentation.

type Variant
= Default
| Destructive

Describes alert appearance.

new : List (Html msg) -> Config msg

Creates a default alert with caller-owned content.

withAttributes : List (Attribute msg) -> Config msg -> Config msg

Adds native attributes to the alert.

Sets the alert appearance.

view : Config msg -> Html msg

Renders a configured alert.

title : List (Html msg) -> Html msg

Renders alert title content.

description : List (Html msg) -> Html msg

Renders alert description content.

action : List (Html msg) -> Html msg

Renders alert action content.