Popovers

Documentation and examples for adding Bootstrap popovers, like those found in iOS, to any element on your site.

On this page

Overview

  • Zero-length title and content attributes will never show a popover.
  • Triggering popovers on hidden elements will not work.
  • Popovers for disabled elements must be triggered on a wrapper element.
  • When triggered from anchors that wrap across multiple lines, popovers will be centered between the anchors' overall width. Use textNowrap on your b-a components to avoid this behavior.
  • Popovers must be hidden before their corresponding elements have been removed from the DOM.
  • Popovers can be triggered thanks to an element inside a shadow DOM.

Example

vue

Four directions

Four options are available: top, right, bottom, and left aligned. Directions are mirrored when using Bootstrap in RTL.

vue

Dismiss on next click

Use the focus trigger to dismiss popovers on the user's next click of a different element than the toggle element.

Disabled elements

Elements with the disabled attribute aren't interactive, meaning users cannot hover or click them to trigger a popover (or tooltip). As a workaround, you'll want to trigger the popover from a wrapper b-div component or span tag, ideally made keyboard-focusable using tabindex="0".

For disabled popover triggers, you may also prefer trigger="hover focus" so that the popover appears as immediate visual feedback to your users as they may not expect to _click_ on a disabled element.

vue
On this page