Connected Overlay
Overlayatlas-connected-overlayExamples
Anchored panel
The low-level primitive under Select, Popover and Combobox: a panel positioned next to an origin element. It closes on an outside click or Escape by emitting closed ; the trigger reports its state with aria-expanded . matchOriginWidth is off here because the panel has its own width.
Above, as wide as the origin
preferredPosition="above" opens the panel over its origin (flipping below when there is no room) and matchOriginWidth (the default) gives it the origin's width. offsetY sets the gap.
API
Generated from the library source, so it always matches the code.
AtlasConnectedOverlayComponent atlas-connected-overlay
| Input | Type | Default | Description |
|---|---|---|---|
| origin required | HTMLElement | — | |
| open | boolean | false | |
| matchOriginWidth | boolean | true | |
| panelClass | string | '' | |
| preferredPosition | 'below' | 'above' | 'below' | |
| customPositions | ConnectedPosition[] | undefined | undefined | |
| offsetY | number | 4 | |
| growAfterOpen | boolean | false | true , CDK keeps the first position whose origin point is on-screen and lets the panel grow (even past the viewport) rather than re-flipping — useful for panels whose height changes while open, such as the datepicker switching months. When false (the default), CDK measures the panel's full height up front and flips to the first position where it fits completely. This is what fixed-height dropdowns (select, multi-select, combobox) want: a panel opened near the bottom edge flips above instead of growing off-screen downward. |
| Output | Payload | Description |
|---|---|---|
| closed | void |