2.1
Popover
Popovers are used to provide supplemental, useful, unique information about an element, including one or multiple actionable elements. They inform the user of additional information within the context of their original view, but without forcing the user to act upon it like a modal.
Import
js
import {
MpPopover,
MpPopoverTrigger,
MpPopoverContent,
MpPopoverList,
MpPopoverListItem
} from '@mekari/pixel3'Playground
API
MpPopover
Props
Events
Slots
| Name | Type | Default |
|---|---|---|
placement | "top" | "left" | "right" | "bottom" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | bottom-start |
id | string | - |
trigger | "click" | "hover" | - |
trigger-id | string | - |
is-default-open | boolean | false |
is-manual | boolean | false |
is-open | boolean | false |
is-focus-on-close | boolean | false |
is-close-on-blur | boolean | true |
is-close-on-escape | boolean | true |
is-close-on-select | boolean | false |
use-portal | boolean | false |
is-keep-alive | boolean | true |
is-adaptive-width | boolean | false |
MpPopoverTrigger
Slots
| Name | Type |
|---|---|
default | any |
MpPopoverContent
Props
Slots
| Name | Type | Default |
|---|---|---|
is-dark | boolean | false |
is-unstyled | boolean | false |
MpPopoverList
Slots
| Name | Type |
|---|---|
default | any |
MpPopoverListItem
Props
Slots
| Name | Type | Default |
|---|---|---|
as | string | button |
is-disabled | boolean | false |
is-active | boolean | false |
is-arrow | boolean | false |