--- ## Popover Floating panel anchored to a trigger element. Uses the native Popover API for top-layer rendering, light dismiss, and Escape handling. The library's built-in positioning engine provides automatic flip, shift, and optional width syncing. **Import:** `import { Popover } from '@urbicon-ui/blocks';` ### Examples ```svelte {#snippet trigger()} {/snippet} {#snippet children()}
Popover content
{/snippet}
``` ```svelte {#snippet trigger()} {/snippet} {#snippet children()}

Details

Additional context shown in a floating panel.

{/snippet}
``` ### Variants - size: lg, md, sm (default: md) ### Api | Prop | Type | Required | Default | Description | | --- | --- | :---: | --- | --- | | children | `Snippet` | yes | | Popover body rendered inside the floating panel. | | ...HTMLAttributes | `HTMLAttributes` | no | | HTML attributes (excluding: 'children') | | ...PopoverVariants | `VariantProps` | no | | Styling variants from PopoverVariants | | autoTrigger | `boolean` | no | | When true (default), the trigger wrapper handles click and keyboard to toggle the popover. Set to `false` to manage `open` yourself. | | class | `string` | no | | Extra classes merged onto the floating panel element. In the same Tailwind bucket `class` wins over the `slotClasses` entry for the element it lands on. Presets and provider defaults sit below both. | | closeOnClickOutside | `boolean` | no | | Whether the popover closes on outside click / pointer interaction. Default `true`. Set to `false` to pin the popover open until the consumer explicitly toggles `open`. | | closeOnEscape | `boolean` | no | | Whether the popover closes on Escape key. Default `true`. Set to `false` for cases where Escape should be intercepted by an inner widget (e.g. an editable cell that wants to revert on Escape). Inside an open modal dialog (a `Dialog`, a `Drawer`, or a `` of your own opened with `showModal()`), an open popover is a layer of the overlay stack above it: Escape closes the popover first wherever focus sits in the dialog, the next one the dialog, and `overlayStack.closeAll()` closes it before the dialog. With `false` there, the popover holds Escape — neither it nor the dialog closes until it is closed some other way. | | inline | `boolean` | no | false | Render in a way that is legal inside **phrasing content** — a paragraph or a heading. Set this when the trigger sits in flowing text, as a citation chip does inside a markdown paragraph. A `