Skip to content

Popover ​

The popover component is used to display temporary information around an element. When the user interacts with the trigger element (click or hover), the popover will display the content at the specified position.

Basic Usage ​

The most basic usage of the popover.

Trigger Method ​

Use the trigger slot to define the trigger element, and the popover content can be any custom content.

Arrow and Position ​

Use the placement attribute to define the position of the popover, and use the arrow attribute to define whether the arrow is displayed.

Animation Time ​

Use the duration attribute to define the animation time of the popover.

Offset ​

Use the offset attribute to define the offset of the popover.

Attributes ​

AttributeDescriptionTypeDefault
triggerTrigger method'hover' | 'click' | 'focus''click'
placementPopover position'top' | 'bottom' | 'left' | 'right''bottom'
arrowWhether to display the arrowbooleanfalse
durationAnimation duration (ms)number200

Slots ​

Slot NameDescription
triggerTrigger element
defaultPopover content