# popover

```ts
import { PopoverModule } from '@anguless/angulux/popover';
```

## Popover

`agl-popover` — component

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

Popover is a container component that can overlay other components on page.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `ariaLabel` | `string \| undefined` | _not documented_ | Defines a string that labels the input for accessibility. |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
| `dismissable` | `boolean` | _not documented_ | Enables to hide the overlay when outside is clicked. |
| `style` | `{ [klass: string]: any } \| null \| undefined` | _not documented_ | Inline style of the component. |
| `styleClass` | `string \| undefined` | _not documented_ | Style class of the component. |
| `appendTo` | `HTMLElement \| ElementRef \| TemplateRef<any> \| 'self' \| 'body' \| null \| undefined \| any` | `'self'` | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
| `autoZIndex` | `boolean` | _not documented_ | Whether to automatically manage layering. |
| `ariaCloseLabel` | `string \| undefined` | _not documented_ | Aria label of the close icon. |
| `baseZIndex` | `number` | _not documented_ | Base zIndex value to use in layering. |
| `focusOnShow` | `boolean` | _not documented_ | When enabled, focus moves into the panel on show: to the `initialFocus` target, else an element marked `autofocus`, else the first focusable element. |
| `initialFocus` | `string \| undefined` | _not documented_ | Names the element that receives focus when the panel opens: a CSS selector matched inside the panel. Applies with `focusOnShow`. |
| `showTransitionOptions` | `string` | _not documented_ | Transition options of the show animation. **Deprecated:** since v21.0.0. Use `motionOptions` instead. |
| `hideTransitionOptions` | `string` | _not documented_ | Transition options of the hide animation. **Deprecated:** since v21.0.0. Use `motionOptions` instead. |
| `motionOptions` | `MotionOptions \| undefined` | _not documented_ | The motion options. |

| Output | Type | Description |
| --- | --- | --- |
| `onShow` | `EventEmitter<any>` | Callback to invoke when an overlay becomes visible. |
| `onHide` | `EventEmitter<any>` | Callback to invoke when an overlay gets hidden. |

| Slot | Read as | Description |
| --- | --- | --- |
| `<ng-template #content>` | `contentTemplate` | Custom content template. |
