DialogDialog
화면을 어둡게 덮고 확인을 받는 대화상자입니다.A dialog that dims the screen and asks for confirmation.
오버레이Overlays
import { Button, Dialog, DialogClose, DialogContent, DialogFooter, DialogTrigger } from "@horon-ai/react"; export default function DialogDemo() { return ( <div className="flex w-full flex-col gap-6"> <div className="flex flex-col items-center gap-4"> <p className="text-caption text-text-secondary">Solid</p> <Dialog> <DialogTrigger render={<Button variant="solid" />}>Delete bot</DialogTrigger> <DialogContent surface="solid" title="Delete Inbox Manager?" description="Its routines and memory are removed. Messages it already sent stay in your inbox." > <DialogFooter> <DialogClose render={<Button variant="solid" />}>Cancel</DialogClose> <DialogClose render={<Button variant="danger" />}>Delete bot</DialogClose> </DialogFooter> </DialogContent> </Dialog> </div> <> <p className="text-caption text-text-secondary">Glass</p> <Dialog> <DialogTrigger render={<Button variant="glass" />}>Delete bot</DialogTrigger> <DialogContent surface="glass" title="Delete Inbox Manager?" description="Its routines and memory are removed. Messages it already sent stay in your inbox." > <DialogFooter> <DialogClose render={<Button variant="glass" />}>Cancel</DialogClose> <DialogClose render={<Button variant="danger" />}>Delete bot</DialogClose> </DialogFooter> </DialogContent> </Dialog> </> </div> ); }