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

VoltDialogOverlay — [voltDialogOverlay]

InputTypeDefault
closeOnClick unknown

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.