Popover
Display more information or a small content area near an element.
Usage guide
#Provide additional information or a small interaction near its target. Use Tooltip for short descriptions and Popconfirm for confirmation questions.
- Content and placement
- Place it inside the trigger and put content in the default slot. Set placement and arrow visibility with
positionandarrow; the popup adjusts to available screen space. - Opening behavior
- Choose
click,hover, orfocusto suit the workflow. - Direct control
- Disable automatic triggers with
trigger="null", then usesetOpen(),setClose(), oropen.
Examples
#Feature examples
#Choose a feature from 12 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-popover>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
boolean | false | Show an arrow pointing to the trigger. | |
boolean | false | Whether the submenu is expanded. | |
'top' | 'bottom' | 'left' | 'right' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' | 'bottom' | Popup placement relative to the trigger. | |
'hover' | 'click' | 'focus' | 'null' | 'hover' | User action that opens the list or popup. | |
number | 0 | Opening delay in milliseconds. | |
number | 100 | Closing delay in milliseconds. | |
boolean | false | Stick to the top of the nearest scroll container. | |
| 'none'
| 'fade' | 'fade-scale' | 'zoom' | 'pop'
| 'slide-top' | 'slide-bottom' | 'slide-left' | 'slide-right'
| 'slide-fade-top' | 'slide-fade-bottom' | 'slide-fade-left' | 'slide-fade-right'
| 'reveal-top' | 'reveal-bottom' | 'reveal-left' | 'reveal-right'
| 'flip-x' | 'flip-y' | 'bounce' | 'spin' | 'none' | Enter/exit animation type. `none` (default) toggles instantly. | |
'x-fast' | 'fast' | 'medium' | 'slow' | 'x-slow' | 'fast' | Animation playback speed token. Maps to `--transition-*` global tokens. |
Methods
| Method | Returns | Description |
|---|---|---|
Promise<void> | Expand the submenu. | |
Promise<void> | Close the item. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. |