UNPKG

dgz-ui

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript

47 lines 2.5 kB
import * as React from 'react'; import * as DialogPrimitive from '@radix-ui/react-dialog'; /** * Dialog primitives for building modal dialogs. * Use Dialog as the root, DialogTrigger to open, and DialogContent for the modal body. */ declare const Dialog: React.FC<DialogPrimitive.DialogProps>; declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>; declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>; declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>; /** * Full-screen overlay that appears behind the dialog content. */ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; export type DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & { hasCloseButton?: true; }; /** * The main dialog content container positioned in the viewport center. */ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & { hasCloseButton?: true; } & React.RefAttributes<HTMLDivElement>>; /** * Container for dialog header content (title, actions). */ declare const DialogHeader: { ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; displayName: string; }; /** * Container for dialog footer actions. */ declare const DialogFooter: { ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; displayName: string; }; /** * DialogTitle - The accessible dialog title. */ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>; /** * DialogDescription - Additional descriptive text for the dialog. */ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>; export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, }; //# sourceMappingURL=dialog.d.ts.map