File: popover.md | Updated: 11/15/2025
5-day Mini-Course
Short, tactical video lessons from the creator of Tailwind CSS, delivered directly to your inbox every day for a week.
A commercial license is required to use Tailwind Plus Elements. Purchase Tailwind Plus to obtain a license.
The <el-popover> component is used to display floating panels with arbitrary content β perfect for things like navigation menus and flyouts.
Contains the content of the popover.
| | |
| --- | --- |
| Attributes | |
| anchor | Where to position the popover. Supports values like "bottom", "bottom-start", "bottom-end", etc. |
| anchor-strategy | Sets the position CSS property of the popover to eitherabsolute (default) or fixed. |
| Data attributes (Read-only) | |
| data-closed | Present before transitioning in, and when transitioning out. |
| data-enter | Present when transitioning in. |
| data-leave | Present when transitioning out. |
| data-transition | Present when transitioning in or out. |
| Events | |
| toggle | Dispatched when the popover opens or closes. |
| Methods | |
| togglePopover() | Toggles the popover visibility. |
| showPopover() | Shows the popover. |
| hidePopover() | Hides the popover. |
Links related popovers to prevent them from closing when focus is moved between them.
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .