Toast.Components (Toast v0.2.0)
View SourceToast UI components for LiveToast.
Summary
Functions
Renders the toast container element.
Renders flash messages when not connected to LiveView. This provides a fallback for server-rendered pages.
Renders an individual toast notification.
Functions
Renders the toast container element.
Attributes
id(:string) - Defaults to"toast-container".class(:string) - Defaults to"".position(:string) - Defaults to"bottom-right".
Slots
inner_block
Renders flash messages when not connected to LiveView. This provides a fallback for server-rendered pages.
Attributes
flash(:map) (required)theme(:string) - Defaults to"light".position(:string) - Defaults to"bottom-right".rich_colors(:boolean) - Defaults tofalse.
Renders an individual toast notification.
Attributes
toast(Toast) (required)