Getting StartedInstall and bootstrap headless foundations 4
LayoutHeadless structural primitives for expandable and container patterns 6
OverlayHeadless modal and floating layer behavior 3
FeedbackHeadless notification and status communication patterns 5
FormHeadless input and selection contracts 17
UtilityReusable action, identity, and clipboard behavior 6
NavigationHeadless trails, trees, menus, and command surfaces 7

API reference

Headless popover exposes a root controller plus structural directives for the trigger, panel, and explicit close affordances. It owns opening, dismissal, focus handoff, and ARIA wiring, while you own the anchored layout.

Root directive

DirectiveSelectorKey APIPurpose
TngPopover[tngPopover]open, defaultOpen, disabled, closeOnEscape, closeOnOutsidePointer, restoreFocus, autoFocus, side, align, panelRole, ariaHasPopup, ariaLabelOwns open state, dismissal policy, focus handoff, and panel accessibility metadata.
TngPopover[tngPopover]openChange, closedEmits controlled open-state changes and close reasons for feature workflows.

Slot directives

DirectiveSelectorSlotPurpose
TngPopoverTrigger[tngPopoverTrigger]popover-triggerBinds a trigger to a popover instance and mirrors open/disabled state through data hooks.
TngPopoverPanel[tngPopoverPanel]popover-panelAnchored panel surface with generated id, role, hidden state, side, and align metadata.
TngPopoverContent[tngPopoverContent]popover-panelAlias of the panel directive for teams that prefer a content-oriented naming style.
TngPopoverClose[tngPopoverClose]popover-closeCloses the popover from an in-panel action and can emit an explicit close reason.

Behavior and events

  • closed emits 'escape' | 'outside-pointer' | 'programmatic' | 'trigger-toggle'.
  • autoFocus can prefer the first focusable, the panel itself, or no initial focus move.
  • Popover does not trap focus by default, so Tab may leave the panel.
  • side and align only mirror state as attributes; they do not perform automatic positioning math.
  • panelRole supports dialog, menu, listbox, region, or none.