Skip to content

zk-toast-container ​

The live region that holds the toasts, to put once in the layout.

Props ​

PropTypeDefaultDescription
placementstring'bottom-end'data-placement: where your style puts it
labelstring'Notifications'Accessible name
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultThe zk-toast elements

role="region" and aria-live="polite": what is added to it is announced. The toasts are rendered by the server; there is no timer. To remove them after a few seconds, use a CSS animation on .toast, or your own script. No script of its own.

Examples ​

Flash messages ​

blade
<x-zk-toast-container>
    @if (session('status'))
        <x-zk-toast variant="success">{{ session('status') }}</x-zk-toast>
    @endif
</x-zk-toast-container>

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.