# Popover Pop some hidden message around content. There isn't much builtin styles in popover. It's more up to you to fill the content. If you just want to display some basic text message, see [Tooltip](tooltip) instead. ## Demos ```demo basic.vue trigger.vue delay.vue no-arrow.vue event.vue placement.vue raw-content.vue style.vue trigger-width.vue manual-position.vue slots.vue ``` ## API ### Popover Props | Name | Type | Default | Description | Version | | --- | --- | --- | --- | --- | | animated | `boolean` | `true` | Use animation when popping up. | | | arrow-point-to-center | `boolean` | `false` | Whether the arrow points to center of the trigger element. | 2.26.0 | | arrow-class | `string` | `undefined` | Arrow class of the popover. | 2.36.0 | | arrow-style | `string \| Object` | `undefined` | Arrow style of the popover. | | | arrow-wrapper-class | `string` | `undefined` | Arrow class of the popover wrapper. | 2.36.0 | | arrow-wrapper-style | `string \| Object` | `undefined` | Arrow style of the popover wrapper. | 2.36.0 | | content-class | `string` | `undefined` | Content class of the popover. | 2.36.0 | | content-style | `string \| Object` | `undefined` | Content style of the popover. | 2.28.3 | | delay | `number` | `100` | Popover showing delay when trigger is `hover`. | | | disabled | `boolean` | `false` | Whether the popover can't be activated. | | | display-directive | `'if' \| 'show'` | `'if'` | The conditionally render directive to show popover content. `if` means using `v-if` to render content, `show` means using `v-show` to render content. | | | duration | `number` | `100` | Popover vanish delay when trigger is `hover`. | | | flip | `boolean` | `true` | Whether to flip the popover when there is no space for current placement. | | | footer-class | `string` | `undefined` | Footer class of the popover. | 2.36.0 | | footer-style | `string \| Object` | `undefined` | Footer style of the popover. | 2.31.0 | | header-class | `string` | `undefined` | Header class of the popover. | 2.36.0 | | header-style | `string \| Object` | `undefined` | Header style of the popover. | 2.28.3 | | keep-alive-on-hover | `boolean` | `true` | Whether to keep popover shown when hover on popover itself with `trigger="hover"`. | 2.25.0 | | overlap | `boolean` | `false` | Overlap trigger element. | | | placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end' \| ` | `'top'` | Popover placement. | | | raw | `boolean` | `false` | Whether to use no default styles. | | | scrollable | `boolean` | `false` | Whether the popover's content is scrollable. | 2.28.3 | | show-arrow | `boolean` | `true` | Whether to show arrow if set. | | | show | `boolean` | `undefined` | Whether to show popover. | | | to | `string \| HTMLElement \| false` | `'body'` | Container node of the popover content. `false` will keep it at trigger container. | | | trigger | `'hover' \| 'click' \| 'focus' \| 'manual'` | `'hover'` | The popover trigger type. | | | width | `number \| 'trigger'` | `undefined` | `'trigger'` means popover's width will follow its trigger's width. | | | x | `number` | `undefined` | The CSS `left` pixel value when popover manually positioned (x, y need to be set together). | | | y | `number` | `undefined` | The CSS `top` pixel value when popover manually positioned (x, y need to be set together). | | | z-index | `number` | `undefined` | The z-index of the popover. | | | on-clickoutside | `(e: MouseEvent) => void` | `undefined` | Callback function triggered when clickoutside. | | | on-update:show | `(value: boolean) => void` | `undefined` | Callback on show status changes. | | ### Popover Slots | Name | Parameters | Description | Version | | --- | --- | --- | --- | | trigger | `()` | The element or component that triggers popover. | | | footer | `()` | The footer content of the popover. | 2.31.0 | | header | `()` | The header content of the popover. | 2.28.3 | | default | `()` | The content inside popover. | | ### Popover Methods | Name | Parameters | Description | | ------------ | ----------------- | ------------------------------------- | | setShow | `(show: boolean)` | Set show status in uncontrolled mode. | | syncPosition | `()` | Sync popover position. |