Modal
Dialog that focuses user attention exclusively on an information via a window that is overlaid on primary content.
Import
js
import { MpModal, MpModalOverlay, MpModalContent, MpModalHeader, MpModalFooter, MpModalBody, MpModalCloseButton } from '@mekari/pixel3'
Playground
API
MpModal
Props
Events
Slots
Name | Type | Default |
---|---|---|
id | string | - |
is-open | boolean | false |
is-block-scroll-on-mount | boolean | true |
is-close-on-esc | boolean | true |
is-close-on-overlay-click | boolean | true |
is-keep-alive | boolean | false |
is-centered | boolean | false |
is-disable-portal | boolean | false |
is-disable-focus-trap | boolean | false |
scroll-behavior | "inside" | "outside" | "auto" | outside |
size | "sm" | "md" | "lg" | "xl" | "2xl" | "full"; | md |
MpModalContent
Slots
Name | Type |
---|---|
default | any |
MpModalHeader
Slots
Name | Type |
---|---|
default | any |
MpModalBody
Slots
Name | Type |
---|---|
default | any |
MpModalFooter
Slots
Name | Type |
---|---|
default | any |