Popover for Angular
Introduction
Section titled “Introduction”Non-modal dialog anchored to a trigger button (APG disclosure plus non-modal dialog). Renders in the top layer through the Popover API, positioned next to the trigger, with Escape, outside-pointer, and focus-out light dismiss arbitrated by the shared overlay stack.
- Anchored panelInteractive content next to its trigger, flipping to stay inside the viewport.
- Focus handledFocus moves into the panel on open and back to the trigger on close.
- Light dismissEscape and outside clicks close it, each one configurable and cancelable.
- Title and close buttonAn optional heading names the panel and an optional button closes it.
Behavior, design tokens, and limitations are described on the Popover page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component } from '@angular/core';import { AuiPopover } from '@absoluteui/angular/popover';import { AuiButton } from '@absoluteui/angular/button';import { AuiCheckbox } from '@absoluteui/angular/checkbox';
@Component({ selector: 'app-toolbar', imports: [AuiPopover, AuiButton, AuiCheckbox], template: ` <button type="button" auiButton [auiPopover]="filters" popoverTitle="Filters" popoverPlacement="bottom-start" (closed)="apply()">Filters</button> <ng-template #filters><aui-checkbox label="Only active" /></ng-template> `,})export class ToolbarComponent { apply(): void {}}Install and start
Section titled “Install and start”npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/themeSetup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.
import { AuiPopover } from '@absoluteui/angular/popover';Defaults for every instance: provideAbsoluteUIConfig({ components: { popover: { ... } } }) (see Configuration).
API reference
Section titled “API reference”[auiPopover]
Section titled “[auiPopover]”Class AuiPopover; template reference #ref="auiPopover".
AbsoluteUI Popover on its trigger: <button [auiPopover]="filters" popoverTitle="Filters">Filters</button><ng-template #filters>...</ng-template>. The template is rendered as an embedded view, so its bindings stay live.
Server rendering: Renders in the browser only; on the server the element stays empty.
Inputs
Section titled “Inputs”| Input | Type | Default | Description |
|---|---|---|---|
auiPopover |
TemplateRef<unknown> |
Required. The popover content: an <ng-template> reference. |
|
popoverTitle |
string |
Visible heading; names the popup through aria-labelledby. Either title or label is required. | |
popoverLabel |
string |
aria-label when there is no title. | |
popoverPlacement |
Placement |
'bottom-start' |
Preferred side and logical alignment; flips and shifts to fit. |
popoverOffset |
number |
'8' |
Gap between trigger and popup, px. |
closeOnEscape |
boolean |
true |
Escape requests close (cancelable). Escape is consumed while the popover is topmost either way. |
closeOnOutsidePointer |
boolean |
true |
Pointer down outside the popup and trigger requests close (cancelable). |
initialFocus |
PopoverInitialFocus |
'first' |
Where focus goes on open: first tabbable element (falls back to the container), the popup container, or nowhere. |
showCloseButton |
boolean |
false |
Render a localized close button in the header. |
direction |
"ltr" | "rtl" |
'ltr' |
Resolves logical start/end placements. |
icons |
Partial<PopoverIcons> |
Icon slot overrides. |
Outputs
Section titled “Outputs”| Output | Payload | Description |
|---|---|---|
(opened) |
null |
After the popup opened (dispatched on the popup element). Re-emits aui-open. |
(cancelled) |
PopoverCloseDetail |
Before a user-initiated close; preventDefault keeps it open. Re-emits aui-cancel. |
(closed) |
PopoverCloseDetail |
After the popup closed. Re-emits aui-close. |
Methods
Section titled “Methods”Call them through a viewChild query or a template reference.
| Method | Description |
|---|---|
open(): void |
Show the popover. |
close(): void |
Hide the popover; focus returns to the trigger. |
toggle(): void |
Show the popover when hidden, hide it when shown. |
Accessibility and performance
Section titled “Accessibility and performance”Pattern: WAI-ARIA APG Disclosure (trigger) with a non-modal Dialog (popup).
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Popover: Accessibility and performance.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.