5-day Mini-Course

Build UIs that don’t suck.

Short, tactical video lessons from the creator of Tailwind CSS, delivered directly to your inbox every day for a week.

Get the free course

Popover

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.

Component API

<el-popover>

Contains the content of the popover.

Attributes
anchorWhere to position the popover. Supports values like "bottom", "bottom-start", "bottom-end", etc.
anchor-strategySets the position CSS property of the popover to eitherabsolute (default) or fixed.
Data attributes (Read-only)
data-closedPresent before transitioning in, and when transitioning out.
data-enterPresent when transitioning in.
data-leavePresent when transitioning out.
data-transitionPresent when transitioning in or out.
Events
toggleDispatched when the popover opens or closes.
Methods
togglePopover()Toggles the popover visibility.
showPopover()Shows the popover.
hidePopover()Hides the popover.

<el-popover-group>

Links related popovers to prevent them from closing when focus is moved between them.

Examples

Basic example

To view the complete documentation, you must own a Tailwind Plus license and be signed in.

Toggling popovers

To view the complete documentation, you must own a Tailwind Plus license and be signed in.

Opening popovers

To view the complete documentation, you must own a Tailwind Plus license and be signed in.

Closing popovers

To view the complete documentation, you must own a Tailwind Plus license and be signed in.

Setting the panel width

To view the complete documentation, you must own a Tailwind Plus license and be signed in.

Positioning the panel

To view the complete documentation, you must own a Tailwind Plus license and be signed in.

Adding transitions

To view the complete documentation, you must own a Tailwind Plus license and be signed in.

Grouping related popovers

To view the complete documentation, you must own a Tailwind Plus license and be signed in.