Getting StartedInstallation and setup guides 5
LayoutWorkflow and structural layout components 7
OverlayModal and floating layer surfaces 3
FeedbackStatus, empty, progress, and loading placeholder patterns 5
FormInput and selection components 17
UtilityGeneral-purpose interface utilities 7
NavigationMenu surfaces and hierarchical actions 7

API reference

Component popover uses the styled <tng-popover> wrapper and sits on top of the same primitive contract documented on the separate headless popover page.

Wrapper component: <tng-popover>

ElementInput / OutputTypeDescription
<tng-popover>open, openChangebooleanControlled popover state. Leave open undefined for uncontrolled mode.
<tng-popover>defaultOpenbooleanInitial open state when uncontrolled.
<tng-popover>triggerLabelstringText rendered in the built-in trigger button.
<tng-popover>disabledbooleanPrevents opening from trigger interactions.
<tng-popover>closeOnEscape, closeOnOutsidePointerbooleanDismiss policy for keyboard escape and outside pointer interactions.
<tng-popover>restoreFocusbooleanRestores focus to trigger/previous element after close.
<tng-popover>autoFocus'first-focusable' | 'panel' | 'none'Controls what receives focus when the panel opens.
<tng-popover>side, align'top' | 'right' | 'bottom' | 'left', 'start' | 'center' | 'end'Placement hooks exposed via data-side and data-align.
<tng-popover>panelRole, ariaLabel, ariaHasPopup'dialog' | 'menu' | 'listbox' | 'region' | 'none', stringARIA contract for panel semantics and trigger aria-haspopup.
<tng-popover>closed'escape' | 'outside-pointer' | 'programmatic' | 'trigger-toggle'Close reason payload for analytics and flow state tracking.

Primitive directives

DirectivePurposeKey inputs / outputs
tngPopoverRoot state machine for open/close, dismissal, placement, and accessibility wiring.open, defaultOpen, closeOnEscape, closeOnOutsidePointer, autoFocus, side, align, openChange, closed
tngPopoverTriggerBinds trigger element to a popover instance and toggles open/close on click.[tngPopoverTrigger] (optional explicit popover instance)
tngPopoverPanel / tngPopoverContentPanel surface with generated id, role, hidden state, and slot attributes.Reads state from root; no separate inputs required.
tngPopoverCloseCloses the popover when clicked and emits reason through root closed.[tngPopoverClose] close reason (optional)

Keyboard contract (high level)

  • Enter/Space on a button trigger toggles the popover panel.
  • Escape closes when closeOnEscape is enabled.
  • Outside pointer interactions close when closeOnOutsidePointer is enabled and target is outside the popover root.
  • Focus restore after close is controlled by restoreFocus.
  • Popover does not trap focus by default; Tab can move outside the panel.