primait/pyxis-components/4.0.1

NOTE: the latest version is 9.0.3

Prima.Pyxis.Loader

Creates a Loader with svg animation.

Configuration

type Config

Represents the configuration of the loader.

Configuration Helpers

spinner : Maybe LoaderSize -> Maybe String -> Config

Represents the configuration of the Spinner loader.

import Prima.Pyxis.Loader as Loader


...


config : Loader.Config
config =
    Loader.spinner Loader.small (Just "Please wait...")


...
vehicle : Maybe String -> Config

Represents the configuration of the Vehicle loader.

import Prima.Pyxis.Loader as Loader


...


config : Loader.Config
config =
    Loader.vehicle (Just "Please wait...")


...

Helpers

medium : Maybe LoaderSize

Define a Medium size for the loader. You can use it only with Spinner loader.

small : Maybe LoaderSize

Define a Small size for the loader. You can use it only with Spinner loader.

Render

render : Config -> Html msg

Renders the loader and it's (infinite) animation.

import Prima.Pyxis.Loader as Loader


...


Loader.render <| Loader.vehicle (Just "Please wait...")


...