Skip to content

zk-popover ​

A panel opened by a button, with the native popover attribute.

Props ​

PropTypeDefaultDescription
idstringrequiredIdentifier of the panel
modestring'auto'auto (closes with Escape and a click outside) or manual
labelstring|nullnullAccessible name of the panel
placementstring'bottom'data-placement
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultPanel content
triggerContent of the button that opens it

No script. Class hooks: popover-wrapper, popover-trigger, popover. Place it with CSS anchor positioning or your own rules, using data-placement.

Examples ​

Basic ​

blade
<x-zk-popover id="help" label="Help">
    <x-slot:trigger>Help</x-slot>
    Press <x-zk-kbd>?</x-zk-kbd> anywhere.
</x-zk-popover>

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