Dialog without a title

shadcn/dialog-titlewarningaccessibility

Why it matters

The dialog has no accessible name and Radix logs an error.

Fix

Add a DialogTitle (wrap it in VisuallyHidden to hide it visually).

Credit

  • From Radix UI

    Dialog requires a Title so the dialog has an accessible name.

References