Toast.Components (Toast v0.0.1)

View Source

Toast UI components for LiveToast.

Summary

Functions

Renders the container component that can render flash messages as toasts.

Renders an individual toast notification.

Functions

container(assigns)

Renders the container component that can render flash messages as toasts.

Attributes

  • flash (:map) - Defaults to %{}.
  • position (:string) - Defaults to "bottom-right".
  • theme (:string) - Defaults to "light".
  • rich_colors (:boolean) - Defaults to false.
  • id (:string) - Defaults to "toast-group".
  • max_toasts (:integer) - Defaults to nil.

toast(assigns)

Renders an individual toast notification.

Attributes