UNPKG

@thinkbuff/figma-react

Version:

A Figma React UI components for creating plugins and widgets

22 lines (21 loc) 2.53 kB
import * as DialogPrimitive from '@radix-ui/react-dialog'; declare const DialogRoot: import('react').FC<DialogPrimitive.DialogProps>; declare const DialogTrigger: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>; declare const DialogPortal: import('react').FC<DialogPrimitive.DialogPortalProps>; declare const DialogClose: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>; declare const DialogOverlay: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>; interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> { container?: DialogPrimitive.DialogPortalProps['container']; } /** * A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. * * - [Docs](https://www.radix-ui.com/docs/primitives/components/dialog) * - [API Reference](https://www.radix-ui.com/primitives/docs/components/dialog#api-reference) */ declare const DialogContent: import('react').ForwardRefExoticComponent<DialogContentProps & import('react').RefAttributes<HTMLDivElement>>; declare const DialogHeader: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>; declare const DialogFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>; declare const DialogTitle: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>; declare const DialogDescription: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>; export { DialogRoot as Root, DialogPortal as Portal, DialogOverlay as Overlay, DialogTrigger as Trigger, DialogContent as Content, DialogHeader as Header, DialogFooter as Footer, DialogTitle as Title, DialogDescription as Description, DialogClose as Close, };