Dialog

A window overlaid on either the primary window or another dialog window.

Usage

PreviewCode

Features

  • Keyboard navigation with Escape key to close
  • Click outside to close (configurable)
  • Focus trap for accessibility
  • Smooth animations and transitions
  • ARIA attributes for screen readers

API Reference

VoltDialogContent — [voltDialogContent]

InputTypeDefault
class string ''
role unknown —
modal unknown —

VoltDialogDescription — [voltDialogDescription]

InputTypeDefault
class string ''

VoltDialogOverlay — [voltDialogOverlay]

InputTypeDefault
class string ''
closeOnClick unknown —

VoltDialogRoot — ng-template[voltDialogRoot]

InputTypeDefault
open boolean false
role VoltDialogRole 'dialog'
closeOnEscape boolean true
closeOnClick boolean true
OutputType
openChangeboolean
closedR | undefined

VoltDialogTitle — [voltDialogTitle]

InputTypeDefault
class string ''

VoltDialog — [voltDialog]

InputTypeDefault
voltDialog unknown —
closeOnEscape unknown —
OutputType
closedunknown

Component Source

Install via CLI:npx @voltui/cli add dialog
TypeScript
Loading editor…

Copy this code to your project. The component uses ng-primitives/dialog.