Skip to content

Components

Toast Provider

Hosts transient notifications in a screen corner.

Usage

Basic

Your changes have been saved.
HTML
<bs:bsui-toast-provider position="bottom-right">
  <bs:bsui-toast message="Your changes have been saved." />
</bs:bsui-toast-provider>

Several notifications

The provider stacks everything it holds, and each toast dismisses on its own.

Build 4821 finished in 42 seconds.
Two pages were prerendered.
Licence key saved.
HTML
<bs:bsui-toast-provider position="top-right">
  <bs:bsui-toast message="Build 4821 finished in 42 seconds." />
  <bs:bsui-toast message="Two pages were prerendered." />
  <bs:bsui-toast message="Licence key saved." />
</bs:bsui-toast-provider>

Anatomy

Toast Provider is composed of the blocks below. Each one is a separate block that only renders inside its parent.

  • bsui/toast-provider
  • bsui/toast

Attributes

AttributeTypeDefault
position top-right top-left bottom-right bottom-left bottom-right

bsui/toast

AttributeTypeDefault
message richtext —