grille_pain
grille_pain
provides a simili effect manager to display and manage your
toasts. You should instanciate at most one grille-pain on your applications.
This package exposes two entrypoints: simple
and setup
. The first one
should be appropriated for most use-cases. Reach for the next one if you
really need to customise options.
Functions
pub fn setup(
opts: Options,
) -> Result(fn(Action(Msg, ClientSpa)) -> Nil, GrillePainError)
Setup a new grille_pain
instance. You should not instanciate two instances
on the page, as grille_pain
expect to run as a singleton.
Use grille_pain/options
to provide and customise options.