Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Center Morph Modal

Preview

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/center-morph-modal

Import the shared styles once in your application.

TSUsage
import CenterMorphModal from '@/components/beui/layout/CenterMorphModal.vue'
import '@/components/beui/styles.css'

API Reference

CenterMorphModal

v-model:open?
boolean

Controlled open state.

Defaultfalse
defaultOpen?
boolean

Initial state when used uncontrolled.

Defaultfalse
labels?
Partial<CenterMorphModalMessages>

Override any built-in string.

Default—
label?
string

Accessible name of the dialog in the one-piece form.

Default—

CenterMorphModalContent

ariaLabel?
string

Accessible name announced by screen readers. Defaults to the root's `label`.

Default—
ariaDescribedBy?
string

Optional id of descriptive content inside the modal.

Default—
dismissible?
boolean

Close on Escape or backdrop press. Default true.

Defaulttrue
showCloseButton?
boolean

Render the close control inside the panel's top-right corner. Default true.

Defaulttrue
closeButtonLabel?
string
Default—
class?
string
Default—
backdropClassName?
string

Extra classes for the backdrop.

Default—
backdropClass?
string

Earlier name of `backdropClassName`.

Default—

Updated