Use Radix UI Dialog
mainRadix UI Dialog provides a high-level, accessible dialog component (often called a modal) that handles focus management, screen reader announcements, and keyboard interactions (like closing on Esc).
For full documentation, including component API, installation, and usage examples, visit the official Radix UI documentation site.