Popover — Playground

px
placement
align
triggerType
State
html.html
<button [kuiPopoverFor]="myPop" kuiButton type="button">Open</button>

<kui-popover #myPop>
  <div class="kui-popover-title">Title</div>
  <div class="kui-popover-desc">Supporting text.</div>
</kui-popover>
NameTypeDefaultDescription
placement'top' | 'bottom' | 'left' | 'right''bottom'Preferred side of the anchor. Auto-flips to the opposite side to fit the viewport.
align'start' | 'center' | 'end''center'Alignment of the panel along the anchor edge. Preserved after a placement flip.
arrowbooleanfalseShows the arrow caret pointing to the anchor.
triggerType'click' | 'hover''click'click toggles the panel on click and closes on outside click or ESC. hover opens on mouseenter and closes on mouseleave.
ariaLabelstring'Popover'Accessible name for the role="dialog" panel. Prefer content-specific text.
hoverDelaynumber100Delay in ms before closing on mouseleave in hover mode. Lets the mouse travel from trigger to panel.
offsetnumber8Gap in px between the anchor and the panel. The arrow adds 6px automatically.
trapFocusbooleanfalseTraps focus inside the panel and auto-focuses the first focusable element on open.
openboolean (model)falseCurrent open state exposed for trigger integrations via openChange. Not intended as a standalone controlled API.
[kuiPopoverFor]KuiPopoverComponent | undefined-Wires any element as a trigger for a kui-popover. Sets aria-expanded and aria-haspopup="dialog" automatically.
.kui-popover-title--Optional CSS class for a semi-bold sm title inside the projected content.
.kui-popover-desc--Optional CSS class for secondary sm supporting text inside the projected content.
--kui-popover-bgCSS custom propertyvar(--kui-color-surface-elevated)Panel background.
--kui-popover-borderCSS custom propertyvar(--kui-color-border)Panel border color.
--kui-popover-radiusCSS custom propertyvar(--kui-radius-lg)Panel corner radius.
--kui-popover-shadowCSS custom propertyvar(--kui-shadow-lg)Panel drop shadow.
--kui-popover-padding-xCSS custom propertyvar(--kui-space-4)Panel horizontal padding.
--kui-popover-padding-yCSS custom propertyvar(--kui-space-4)Panel vertical padding.
--kui-popover-min-widthCSS custom property160pxMinimum panel width.
--kui-popover-max-widthCSS custom property320pxMaximum panel width.
--kui-popover-arrow-sizeCSS custom property10pxArrow caret size.
--kui-z-popoverCSS custom property400Panel z-index, between Dropdown (300) and Dialog (500).

Inputs verified against @kikita-labs/ui v1.6.1 v1.6.1 public typings.