Popover
Show related controls in a small anchored panel.
Project visibility
Only project members can view this project.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
popovertarget | Matching element ID | Per instance | Associate a trigger with its non-modal popover. |
aria-labelledby | Element ID | Project visibility heading | Use the visible panel title as the dialog’s accessible name. |
States
| State | Trigger | Result |
|---|---|---|
open | Activate Details. | The panel shows related information beside its trigger. |
closed | Choose Close, press Escape or click outside. | The panel dismisses. |
Svelte implementation guidance
The trigger opens a native popover. Escape, an outside click, and Close dismiss it.
Use the supplied Svelte 5 example. Use `$props.id()` to connect the native `popovertarget` attributes to a stable panel ID.
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-surface | color | #ffffff | Surface for controls and cards. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-radius | length | 10px | Base corner radius. |
--q-space | length | 4px | Base unit for gaps and padding. |
--q-shadow | shadow | 0 4px 16px rgb(0 0 0 / 8%) | Shadow behind raised elements. |