Skip to content

Dialog API

API reference docs for the Stash Dialog component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Dialog from '@leaflink/stash/Dialog.vue';

Props

NameTypeDefaultDescription
alertbooleanfalseTreats it like an Alert Dialog, with only the confirmation button showing.
cancelTextstring 't(ll.cancel)' Cancel button text.
confirmTextstring '' Confirm button text.
dangerZonebooleanfalseIs this a dangerous action? Will turn the confirmation button red.
descriptionstring '' Description text.
disabledbooleanfalseWhether the confirmation button is enabled or not.
string 't(ll.areYouSure)' Header text.
onConfirmTSFunctionType() => undefinedCallback function when the confirm button is clicked.
openbooleanfalseShows or hides the dialog. Usage: v-model:open="isOpen"
statusStatusSeverityundefinedAdds a top accent border and icon next to the header. This behaves similarly to the Alert component in respect to the levels, icons, and colors passing `error` will treat the dialog the same as `dangerZone`

Slots

NameDescription
default

Events

NameDescription
update:open
cancel