mbr/elm-chadcn/1.0.0

ChadCn.Extra.Toolbar

Provides a toolbar composition for caller-owned controls.

This component follows the toolbar composition used by shadcn blocks but is not an upstream shadcn primitive.

type Config msg

Describes toolbar layout and content.

new : Config msg

Creates an empty toolbar.

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

Adds native attributes to the toolbar.

withStart : List (Html msg) -> Config msg -> Config msg

Sets controls rendered at the logical start of the toolbar.

withEnd : List (Html msg) -> Config msg -> Config msg

Sets actions rendered at the logical end of the toolbar.

view : Config msg -> Html msg

Renders the toolbar and its aligned content groups.