Popover
A native non-modal popover for supplementary text or interactive content.
Installation help and a real link in a locally opened popover.
Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.
Installation
suprnova live:add popoverUsage
{% import "suprnova-ui/popover/popover.html" as popover %}
{% call popover::popover_trigger("help", "Help") %}{% endcall %}{% call popover::popover("help", "help", "Help") %}<p>Additional information.</p>{% endcall %}Examples
Server preference
A switch updates your island on the server while the popover stays open locally.
Keyboard and accessibility
suprnova.popover - a native popover (OVL-001): the popover attribute owns the open state and light dismiss, the trigger is a popovertarget invoker, and the browser positions the panel against its invoker where CSS anchor positioning exists (the invoker is the implicit anchor) and centres it otherwise. Keyed and preserved across morphs (OVL-006).
API reference
popover_trigger
| Parameter | Default | Description |
|---|---|---|
target | Required | The `id` of the native popover to toggle. |
text | Required | The trigger's visible text. |
variant | "secondary" | The button variant: `primary`, `secondary`, `ghost` or `danger`. |
popover
| Parameter | Default | Description |
|---|---|---|
id | Required | The popover's `id`, named by its trigger. |
key | Required | A stable `live:key` that preserves the browser-owned open state across compatible morphs. |
label | Required | The popover's accessible name. |
