Dialog

A headless dialog primitive for building modals with focus trapping and accessibility.

Basic

A simple dialog with title and description. The Dialog primitive handles focus trapping, Escape key dismissal, and overlay click out of the box.

Controlled

Control the dialog state externally using @bind-Open. The parent component manages the Open parameter and receives updates via OpenChanged.

Anatomy

Loading example…