UxModal

components/ux/Modal.vue

HeadlessUI dialog modal with backdrop, animated transitions, configurable alignment, and full-screen mode.

components/ux/Modal.vue

Usage

<UxModal :open = "false" :fullScreen = "false" :atTop = "false" :atBottom = "false" :closeBtn = "true" bg = "bg-white" > Content here </UxModal>

Props

PropTypeDefaultDescription
openBooleanfalseWhether modal is visible (v-model:open)
fullScreenBooleanfalseFull-screen mode
atTopBooleanfalseAlign to top of viewport
atBottomBooleanfalseAlign to bottom of viewport
closeBtnBooleantrueShow close button
bgString'bg-white'Background class

Events

EventDescription
update:openWhen modal open state changes

Slots

SlotDescription
defaultModal content

Related