Overlays
Dialog
A sheet over a stippled scrim. No blur.
npx shadcn@latest add https://ui.netm8.com/r/dialog.json@base-ui/reactlucide-react
Overlays
A sheet over a stippled scrim. No blur.
npx shadcn@latest add https://ui.netm8.com/r/dialog.jsonimport { Button } from "@/components/ui/button"
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog"
export default function DialogDemo() {
return (
<Dialog>
<DialogTrigger render={<Button variant="paper" />}>Open letter</DialogTrigger>
<DialogContent data-tone="paper">
<DialogHeader>
<DialogTitle>Send the enquiry?</DialogTitle>
<DialogDescription>It goes to the studio. You get a copy.</DialogDescription>
</DialogHeader>
<DialogFooter>
<DialogClose render={<Button variant="outline" />}>Back</DialogClose>
<DialogClose render={<Button />}>Send</DialogClose>
</DialogFooter>
</DialogContent>
</Dialog>
)
}