Skip to content

Popup UPDATED

When the mouse hovers, focus, or click on a component, a bubble-like card floating layer will pop up. You can manipulate the elements on the card.

Basic

Move the mouse in or click to pop up bubbles, which can operate on the elements on the floating layer, and carry complex content and operations.

Trigger

By setting trigger, you can specify different trigger methods.

They are: hover | click | focus | context-menu.

Position

Popup supports 12 different positions. They are: top left right bottom top-left top-right bottom-left bottom-right left-top left-bottom right-top right-bottom.

NameTypeDefaultDescription
popup-visible / v-modelbooleanundefinedWhether the popover is visible.
default-popup-visiblebooleanfalseWhether the popover is visible by default (uncontrolled mode).
titlestringundefinedTitle.
contentstringundefinedContent.
trigger'hover' | 'click' | 'focus' | 'contextMenu''hover''hover'
position'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom' | 'right' | 'right-top' | 'right-bottom''top'Popup position.
content-classstringundefinedThe class name of the popup content.
content-styleCSSPropertiesundefinedThe style of the popup content.
arrow-classstringundefinedThe class name of the popup arrow.
arrow-styleCSSPropertiesundefinedThe style of the popup arrow.
popup-containerstring | HTMLElement | undefinedundefinedMount container for popup box.
update-at-scrollboolean falseWhether to update the position of the popup when the container is scrolled.
NameParametersDescription
title()Custom popup title.
content()Custom popup content.
NameParametersDescription
popup-visible-change(visible: boolean) => voidTriggered when the text bubble display status changes.

MIT Licensed