mbr/elm-chadcn/1.0.0

ChadCn.Spinner

Provides a loading indicator.

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

type Config msg

Describes a spinner and its presentation.

new : Config msg

Creates a loading spinner.

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

Adds native attributes to the spinner.

withClass : String -> Config msg -> Config msg

Adds a CSS class to the spinner.

view : Config msg -> Html msg

Renders a configured spinner.