Popover overview
Popover provides a ready-made trigger and anchored panel shell with outside-pointer dismissal, Escape handling, and optional focus restore. For full DOM ownership, use the separate headless popover docs.
Imports
Use the wrapper when your team wants built-in trigger markup and a minimum floating panel shell.
Wrapper imports
ts
import { TngPopoverComponent } from '@tailng-ui/components';
Usage patterns
Wrapper usage
html
<tng-popover
triggerLabel="Project actions"
[open]="open()"
(openChange)="open.set($event)"
(closed)="onClosed($event)"
>
<p>Wrapper popover body content.</p>
</tng-popover>
Style variants
The wrapper behavior shown with local CSS or Tailwind-flavored projected content.
Wrapper popover (plain CSS)
Use wrapper defaults for trigger wiring and dismissal behavior.
last close reason: none
Wrapper popover (tailwind shell)
Combine wrapper behavior with utility classes in projected content.
last close reason: none
Keyboard baseline
Enter/Spaceon the built-in trigger toggles the panel.Escapecloses whencloseOnEscapeis enabled.- No focus trap is applied by default;
Tabcan move outside the panel. - Focus can return to the trigger when
restoreFocusis enabled.