mbr/elm-chadcn/1.0.0

ChadCn.Extra.ActionButton

Provides a responsive action button composed from ChadCn.Button.

This component follows the icon-and-label action used by shadcn blocks but is not an upstream shadcn primitive.

type Config msg

Describes a responsive action button.

new : Icon -> String -> Config msg

Creates an enabled action button with no click message.

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

Adds native attributes to the button.

withDisabled : Bool -> Config msg -> Config msg

Sets whether the button accepts interaction.

withOnClick : msg -> Config msg -> Config msg

Sets the message emitted when the button is clicked.

view : Config msg -> Html msg

Renders a small outline button whose label collapses on narrow screens.