Skip to content

zk-dropdown ​

A list of links and buttons opened by a button, with the native popover attribute.

Props ​

PropTypeDefaultDescription
idstringrequiredIdentifier of the list
labelstring|nullnullAccessible name of the list
placementstring'bottom-start'data-placement
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultThe zk-dropdown-item elements
triggerContent of the button that opens it

It is a disclosure (a button that shows a list), not an ARIA menu: the arrow keys do not move between items, the tab key does. Escape and a click outside close it. If you need the arrow keys, use FloatingDropdown of @zairakai/vue-components.

Examples ​

Account menu ​

blade
<x-zk-dropdown id="account" label="Account">
    <x-slot:trigger>Account</x-slot>
    <x-zk-dropdown-item href="/profile">Profile</x-zk-dropdown-item>
    <x-zk-dropdown-item>Sign out</x-zk-dropdown-item>
</x-zk-dropdown>

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