Bind a template to neuPopover for formatted content. For plain text, use the neuPopover selector on the host and bind neuPopoverText. The click mode works with a native button and supports touch, mouse and keyboard activation.
Open the shipping information to read the delivery estimate beside the button. Unlike the short text-only Tooltip, this popover renders a formatted template. neuPopoverContext supplies the estimate and the output reports whether it is open.
Opening and closing events report visibility. Use open(), close() or toggle() on the neuPopover template reference for imperative interactions. The template and its context belong to the application.
Use a labelled native button for click mode. The click popover uses a non-modal dialog role. Reserve hover and focus for supplemental content; use Dialog for a task that needs modal focus management.
Key
Action
Tab
Focus the trigger. In focus mode, the popover opens on focus.
Select click, hover or focus as the opening interaction.
Outputs
Listen to an event with (event)="handler($event)". The table explains the data your handler receives and how to use it.
Name
Payload
Template binding
Description
popoverClosed
void
(popoverClosed)="onPopoverClosed($event)"
Emits after the popover closes.
popoverOpened
void
(popoverOpened)="onPopoverOpened($event)"
Emits when the popover opens.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
Name
Mechanism
Contract
neuPopover
TemplateRef input
TemplateRef<unknown> | null
Usage example
Content between the button tags is projected content. You can supply text, an icon component or an SVG; the Icons section demonstrates these variants. For iconOnly, omit visible text and provide ariaLabel: projected content is not automatically removed.
Customize content
Public methods
Name
Contract
close
close(): void;
open
open(): void;
toggle
toggle(): void;
Public Types
Open a type to inspect its definition and interface fields.
NeuPopoverPosition.d.ts
import type { NeuPopoverPosition } from '@neural-ui/core/popover';
// Public declaration (reference only)
type NeuPopoverPosition = 'top' | 'bottom' | 'left' | 'right';
NeuPopoverTrigger.d.ts
import type { NeuPopoverTrigger } from '@neural-ui/core/popover';
// Public declaration (reference only)
type NeuPopoverTrigger = 'click' | 'hover' | 'focus';