<div>
    <div class="toast toast-center">
        <div class="alert alert-info">
            <span>New message arrived.</span>
        </div>

        <div class="alert alert-success">
            <span>Message sent successfully.</span>
        </div>

    </div>

</div>
<div>
  @jrmc.toast({ class: 'toast-center' })
    @!jrmc.alert.info({ text: 'New message arrived.', icon: 'false' })
    @!jrmc.alert.success({ text: 'Message sent successfully.', icon: 'false' })
  @end
</div>

Toast

Doc : daisyui toast

Toast is a wrapper to stack elements, positioned on the corner of page.

Class name Type
toast Component Container element that sticks to the corner of page
toast-start responsive align horizontally to the left
toast-center responsive align horizontally to the center
toast-end responsive align horizontally to the right (default)
toast-top responsive align vertically to top
toast-middle responsive align vertically to middle
toast-bottom responsive align vertically to bottom