Skip to content

zk-banner ​

A full-width notice, for the site or the page.

Props ​

PropTypeDefaultDescription
variantstring'info'data-variant; warning and error have role="alert"
dismissibleboolfalseShows a dismiss button (data-zk-dismiss=".banner", needs zk-scripts)
dismissLabelstring'Dismiss'Accessible name of the button
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultMessage
iconIcon
actionsButtons or links

Class hooks: banner, banner-icon, banner-content, banner-actions, banner-dismiss.

Examples ​

Maintenance ​

blade
<x-zk-banner variant="warning">Maintenance on Sunday at 2 am.</x-zk-banner>

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