Mixins / foldkit-mixins-ui

DialogContext

interface · packages/mixins-ui/src/dialog.ts:25

interface DialogContext<Input, Message> extends ResolveContext<Input, Message> {
  readonly role?: 'dialog' | 'alertdialog'
  readonly covered?: boolean
  readonly isLeaving?: boolean
  readonly interactiveHandle?: boolean
  readonly attributes?: {
    readonly [K in keyof typeof DialogSlots]?: SlotAttributes<Message>
  }
}

Members

DialogContext.role

property · packages/mixins-ui/src/dialog.ts:32

readonly role?: 'dialog' | 'alertdialog'

'alertdialog', the APG's alert dialog, asks for an answer: its dialog bundle carries role="alertdialog", and the application draws no close button and drops the Messages isDismissal names. 'dialog', the default, writes no role: the <dialog> element already has it.

DialogContext.covered

property · packages/mixins-ui/src/dialog.ts:37

readonly covered?: boolean

Whether a dialog opened from this one is above it, as Base UI's nested dialogs: the panel carries data-covered, and the recipe steps it back.

DialogContext.isLeaving

property · packages/mixins-ui/src/dialog.ts:44

readonly isLeaving?: boolean

Whether the dialog is leaving, isLeaving(model). The panel is then drawn inert for the rest of its exit: upstream already takes the backdrop and close button out of a leaving dialog but leaves the application's own controls live, and its RenderInfo does not say it is leaving.

DialogContext.interactiveHandle

property · packages/mixins-ui/src/dialog.ts:49

readonly interactiveHandle?: boolean

Whether the handle is a control, whose attributes the application adds with attributes, rather than decoration hidden from assistive technology.

DialogContext.attributes

property · packages/mixins-ui/src/dialog.ts:54

readonly attributes?: {
  readonly [K in keyof typeof DialogSlots]?: SlotAttributes<Message>
}

Attributes added to a bundle before the mixins resolve, as the Sheet adds its drag to the panel and the handle.