Vai al contenuto

Componenti

Fornitore di notifiche toast

Ospita notifiche temporanee in un angolo dello schermo.

Utilizzo

Base

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>

Più notifiche

Il provider impila tutte le notifiche che contiene e ogni toast si chiude da solo.

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>

Struttura

Fornitore di notifiche toast è composto dai blocchi seguenti. Ognuno è un blocco separato che viene visualizzato solo all'interno del proprio genitore.

  • bsui/toast-provider
  • bsui/toast

Attributi

AttributoTipoPredefinito
position top-right top-left bottom-right bottom-left bottom-right

bsui/toast

AttributoTipoPredefinito
message richtext —