Toast

The Toast component provides a reusable pattern for toast in the interface.

Basic

Basic toast examples.

Here are examples!
This message has an action button and may be dismissed, it will not dissapear automatically.
This message may be dismissed, it will not dissapear automatically.
This has a button to do a task but no dismiss action and will have double the time for hidden.
This neither has a button, or a dismiss and will be hidden first.

API

Parameter Default Description
bottom-left Position of the toast: top-left, top-right, bottom-left, bottom-right.

Subcomponents

Child components for toast, including purpose and supported Blade parameters.

Toast Item

Blade directive: @toast__item()

Type of notice: success, warning, danger, info.

Parameter Default Type Purpose
info string Type of notice: success, warning, danger, info.
[] array|object An array with two parameters: title and text
false array The icon according to the @icon component.
false boolean If true, the notice will stretch to the full width of the viewport.
false boolean|string If not false, the notice will have a close button. Allowed trueish values: immediate (show notice on reload), session (show notice at next visit, default), permanent (show notice when local storage is wiped).
false array|boolean An array with three parameters: label (text), url and position (aside|below).
[] array Additional CSS classes added to the wrapping element.
[] array Additional HTML attributes added to the wrapping element.

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.

Similar components