Overlays
Dialog
A short task above the page. Focus is trapped inside and returns to the trigger.
src/components/ui/dialog.tsxBehavior from @ui-sdk/react/dialog
Invite form
Memuat
Import
tsx
import { Dialog, DialogContent, DialogTitle, DialogTrigger } from "@/components/ui/dialog";Guidelines
- Every dialog has a
DialogTitle. - The main action sits on the right, last in tab order.
- Long content or multi-step forms fit better in a Drawer or their own page.