Popover
Used to show detailed information inside a pop-up.
Import
Usage
Fundamentals
Position
The x-popover-position
parameter determines which side of the anchor element the popover will appear on. It must be set in accordance with one of the directions specified in direction to ensure the positioning logic behaves as expected.
Direction
The x-popover-direction
parameter specifies the axis along which the popover may be repositioned if it cannot fit on its preferred side. Possible values are:
horizontal
— reposition only along the horizontal (x) axis.vertical
— reposition only along the vertical (y) axis.both
— allow repositioning along both axes.
To lock the popover in place and disable any repositioning, set x-popover-fixed
to true.
Align
The x-popover-align
parameter controls how the popover aligns relative to the anchor. It works perpendicular to the position direction.
API
Inputs
Name | Type | Default |
---|---|---|
x-popover | enum | null |
x-popover-direction | enum | vertical |
x-popover-position | enum | bottom |
x-popover-align | enum | start |
x-popover-offset | number | 4 |
x-popover-fixed | boolean | false |
x-popover-stretch | enum | fit |
x-popover-min-width | number | |
x-popover-max-width | number | |
x-popover-min-height | number | |
x-popover-max-width | number | 360 |
Models
Name | Type | Default |
---|---|---|
x-popover-open | boolean | false |