Skip to content

Dialog

Composable modal built from ArchDialog, trigger, content, header/title/description/footer.

Usage

vue
<script setup>
import {
  ArchDialog,
  ArchDialogTrigger,
  ArchDialogContent,
  ArchDialogHeader,
  ArchDialogTitle
} from "@archora/ui";
</script>

<template>
  <ArchDialog>
    <ArchDialogTrigger>Open</ArchDialogTrigger>
    <ArchDialogContent>
      <ArchDialogHeader><ArchDialogTitle>Settings</ArchDialogTitle></ArchDialogHeader>
      Dialog content
    </ArchDialogContent>
  </ArchDialog>
</template>

Live sandbox

Dialog can be tested directly on this page.

interactive
<ArchDialog><ArchDialogTrigger>Open</ArchDialogTrigger>...</ArchDialog>

Props

PropTypeDefaultDescription
ArchDialog.openboolean-Controlled open state.
ArchDialog.defaultOpenbooleanfalseInitial state for uncontrolled mode.

Events

EventPayloadDescription
update:openopen: booleanState change.
openChangeopen: booleanState change.

Slots

SlotPropsDescription
ArchDialog.default-Trigger/content structure.
ArchDialogContent.defaultDialog content.