Popper

Position floating content next to a trigger element.

Popper

Default

Popovers include padding, rounded corners and a theme shadow. Add details or controls through the content slot. Click the trigger to open and click outside to close.

Without placement, Popper prefers the top and chooses another direction when there is insufficient visible space. Scrolling and resizing recalculate the position. Set placement to choose an initial direction, or :flip="false" to prevent direction changes.

Use Popper for generic dropdown content. When migrating from Pulldown, replace v-model with v-model:visible and the dropdown slot with content. Set visibility to false after an action to close it. This example only displays the selection; it does not perform project operations.

API

PROPS

Property
Type
Values
Description
default
Example
More
loading
Boolean
true | false / lifecycle guard
Show loading feedback and guard opening or closing.
false
—
process-before-open
Function
true | false / lifecycle guard
Show loading feedback and guard opening or closing.
() => true
—
process-before-close
Function
true | false / lifecycle guard
Show loading feedback and guard opening or closing.
() => true
—
v-model:visible
Boolean
true | false
Control whether the floating content is shown.
null
—
trigger
String | String[]
hover | focus | click | contextmenu
Event or events that open the popper.
hover
—
placement
String
top | top-start | top-end | bottom | bottom-start | bottom-end | left | left-start | left-end | right | right-start | right-end
Preferred direction. When omitted, tries top, bottom, right and left against the visible clipping area. If none fits, chooses the side with the least overflow. Explicit values keep that direction as the initial preference.
—
—
flip
Boolean | Object
true | false | FlipOptions
Enable collision-driven direction changes or customize fallback placements and clipping boundaries. false keeps the preferred direction.
{}
—
shift
Boolean | Object
true | false | ShiftOptions
Adjust alignment along the selected side to stay inside the visible clipping area. false disables this adjustment.
{}
—
offset
Number | Object
floating-ui placement | pixels | absolute | fixed
Configure the floating content position.
12
—
strategy
String
floating-ui placement | pixels | absolute | fixed
Configure the floating content position.
absolute
—
disabled
Boolean
true | false
Control availability, arrow, mounting location and lifecycle.
false
—
show-arrow
Boolean
true | false
Control availability, arrow, mounting location and lifecycle.
true
—
teleported
Boolean
true | false
Control availability, arrow, mounting location and lifecycle.
true
—
persistent
Boolean
true | false
Control availability, arrow, mounting location and lifecycle.
false
—
content
String
text or HTML
Provide content without using the content slot.
—
—
raw-content
Boolean
text or HTML
Provide content without using the content slot.
false
—
popper-class
String | Object | Array
CSS values
Customize rendered floating content and layer order.
''
—
popper-style
String | Object | Array
CSS values
Customize rendered floating content and layer order.
''
—
z-index
Number
CSS values
Customize rendered floating content and layer order.
—
—
close-on-click-outside
Boolean
true | false
Close the floating content when clicking outside it. Set false to require the built-in close control.
true
—
outside-click-ignore
Array
CSS selectors
Selectors treated as inside the floating layer for outside-click checks.
[]
—
close-on-reference-hidden
Boolean
true | false
Close when the trigger leaves the viewport. Set false to keep an explicit session open.
true
—
show-close
Boolean
true | false
Show a top-right close control. Defaults to true when close-on-click-outside is false.
—
—
v-model:translucent
Boolean
true | false
Restore full opacity from pointer or keyboard focus on the floating content.
false
—

EVENTS

Event
Type
Description
default
Example
More
before-show
—
Fired during the visibility lifecycle.
—
—
show
—
Fired during the visibility lifecycle.
—
—
before-hide
—
Fired during the visibility lifecycle.
—
—
hide
—
Fired during the visibility lifecycle.
—
—

SLOTS

Slot
Scope
Description
default
Example
More
default
null
popper triggering & reference element
—
content
null
customize content
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied