PyBlade/ui
Menu⌄
DocsComponentsPopover

Popover

Rich content in a floating panel, opened by its trigger.

Alpine.jsdepends on button1 file

Installation

pyblade-ui add popover

Usage

The tag <pb-ui.popover> is available in all your templates.

<pb-ui.popover align="start">
  <pb-slot:trigger><pb-ui.button variant="outline">Open</pb-ui.button></pb-slot:trigger>
  <p class="text-sm">Place any content here.</p>
</pb-ui.popover>

Props

PropDefault
trigger''
align'center'
side'bottom'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.