Skip to content

Popover

<ax-popover> is a non-modal floating panel anchored to a trigger. Put [axPopoverTriggerFor] on the trigger, pointing at the popover instance. The popover holds content in a template that the trigger attaches to a CDK connected overlay. Click toggles; Escape and outside-click dismiss.

import {
AxPopoverComponent,
AxPopoverTriggerDirective,
AxOverlayCloseDirective,
} from '@axisui-ng/overlays';
<ax-button [axPopoverTriggerFor]="info">Details</ax-button>
<ax-popover #info placement="bottom-start">
<div class="p-3">
Anchored, non-modal content.
<ax-button variant="ghost" axOverlayClose>Close</ax-button>
</div>
</ax-popover>
InputTypeDefaultNotes
openmodel<boolean>falseTwo-way open state (usually driven by the trigger).
placementPlacementInput'bottom''top' | 'bottom' | 'start' | 'end', or side-align (e.g. 'bottom-start').
InputTypeDefaultNotes
axPopoverTriggerForAxPopoverComponent (required)Popover instance to control.

The trigger toggles open on click, sets aria-haspopup="true" and aria-expanded, and light-dismisses on outside pointer events and Escape.

MarkerNotes
Default <ng-content>Popover panel body.
axOverlayCloseOptional dismiss control; uses OVERLAY_REF provided by the popover.

The trigger exposes aria-haspopup / aria-expanded. The panel is non-modal — focus is not trapped. Escape and outside-click close the overlay and restore focus to the trigger.

Interactive examples live in Storybook under Overlays / Popover. Run pnpm storybook to explore them.