Popover

Display a native popover element. Uses the Floating UI library. Control placement and offset via the respective properties. Link the popover trigger (eg. a Button) and the popover via the popovertarget attribute as shown in the example code below.

'placement' => 'bottom',
'offset' => '8',

Popover

<x-button label="Open Popover" icon-left="lucide-picture-in-picture-2" popovertargetaction="show" popovertarget="sample-popover" />
<x-popover id="sample-popover" offset="8" class="p-10 w-[240px]">
    <p>Popover</p>
</x-popover>