mbr/elm-chadcn/1.0.0

ChadCn.Marker

Provides conversation marker components.

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

type Config msg

Describes a marker and its presentation.

type Variant
= Default
| Separator
| Border

Describes a marker's visual structure.

new : List (Html msg) -> Config msg

Creates a default marker with caller-owned content.

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

Adds native attributes to the marker root.

Sets the marker's visual structure.

view : Config msg -> Html msg

Renders a configured marker.

(List (Attribute msg) -> List (Html msg) -> Html msg)
-> Config msg
-> Html msg

Renders a configured marker with a caller-selected element.

icon : List (Attribute msg) -> List (Html msg) -> Html msg

Renders a decorative marker icon.

content : List (Attribute msg) -> List (Html msg) -> Html msg

Renders a marker's text or interactive content.