Popover

Shows information in a portal that doesnt disturb the page layout.

Trigger Click

Trigger Hover

Props

NameDefaultType
show
undefinedboolean

Controls visibility of the popover

trigger
"click""click" | "hover"

Event that triggers the popover

hoverDelay
0number

Delay in ms before showing popover on hover

leaveDelay
0.5number

Delay in ms before hiding popover on hover leave

placement
"bottom-start""bottom-start" | "top-start" | "top-end" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | "top" | "bottom" | "right" | "left"

Placement of the popover relative to the target

popoverClass
""string | object | (string | object)[]

transition
null"default" | null

Transition style to use

hideOnBlur
trueboolean

Whether to hide the popover when clicking outside

matchTargetWidth
-boolean

Whether the popover width should match the target element

offset
-number

Slots

SlotPayload
target
{ togglePopover: () => void; updatePosition: () => void; open: () => void; close: () => void; isOpen

Content of the trigger/anchor element

body
{ togglePopover: () => void; updatePosition: () => void; open: () => void; close: () => void; isOpen

Main content of the popover body

body-main
{ togglePopover: () => void; updatePosition: () => void; open: () => void; close: () => void; isOpen

Inner content inside the default body container

Emit Events

EventPayload
open
[]

close
[]

update:show
[value: boolean]