# KptPopover (kpt-popover) A popover - arbitrary content in a bubble on CDK Overlay (richer than a tooltip). Requires `import '@angular/cdk/overlay-prebuilt.css';` Import: `import { KptPopover } from '@konce-pt/angular';` ## Inputs / model - `placement`: 'bottom' | 'top' (default 'bottom') - the preferred side; CDK flips it when there is no room. Horizontally the bubble starts at the trigger's left edge and opens leftwards when it would cross the right edge of the window (a bell in the top-right corner); on a screen too narrow for both it is pushed into view - `open`: model (default false) - two-way, so the application can close the bubble from code - `maxWidth`: string (default '' = `20rem`) - the panel's maximum width, any CSS length (`'24rem'`). The panel is never wider than the window minus the 8 px overlay margin, so wide content wraps instead of spilling out - `ariaLabel`: string (default '') - the accessible name of the panel (`role="dialog"`); give one whenever the panel has no visible heading ## Slots - the element carrying the `kptPopoverTrigger` attribute = the trigger; everything else = the panel ## Example Details
Rich popover content...
## Focus and keyboard The control inside the trigger slot gets `aria-haspopup="dialog"`, a live `aria-expanded` and, while open, `aria-controls` - on the real `