Getting StartedInstallation and setup guides 6
AIAI chat models, streaming, and history 1
FormInput and selection components 27
FlowWorkflow graph and execution surfaces 4
LayoutStructural layout components 9
NavigationMenu surfaces and hierarchical actions 7
OverlayModal and floating layer surfaces 3
FeedbackStatus, empty, progress, and loading placeholder patterns 6
UtilityGeneral-purpose interface utilities 7

Popover overview

Popover provides a detached anchored panel that any linked button can open, with collision-aware positioning, 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 a styled floating panel linked to a native or TailNG trigger.

Wrapper imports

ts
import { TngPopoverComponent, TngPopoverTriggerFor, type TngPopoverCloseReason } from '@tailng-ui/components';

Usage patterns

Wrapper usage

html
<tng-popover
  #popover="tngPopoverComponent"
  [open]="open()"
  (openChange)="open.set($event)"
  (closed)="onClosed($event)"
>
  <p>Wrapper popover body content.</p>
</tng-popover>
<button type="button" [tngPopoverTriggerFor]="popover">Project actions</button>

Style variants

The wrapper behavior shown with local CSS or Tailwind-flavored projected content.

Wrapper popover (plain CSS)

last close reason: none

Keyboard baseline

  • Enter/Space on the linked button toggles the panel.
  • Escape closes when closeOnEscape is enabled.
  • No focus trap is applied by default; Tab can move outside the panel.
  • Focus can return to the trigger when restoreFocus is enabled.