UNPKG

@sky-mavis/tanto-widget

Version:
18 lines (17 loc) 1.35 kB
import type { DialogCloseProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps } from '@radix-ui/react-dialog'; import type { ReactNode } from 'react'; declare function Root({ children, ...props }: DialogProps): import("@emotion/react/jsx-runtime").JSX.Element; declare function Portal(props: DialogPortalProps): import("@emotion/react/jsx-runtime").JSX.Element; declare const Overlay: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>>; declare const Content: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>>; declare function Title(props: DialogTitleProps): import("@emotion/react/jsx-runtime").JSX.Element; declare function Trigger(props: DialogTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element; declare function Close(props: DialogCloseProps): import("@emotion/react/jsx-runtime").JSX.Element; export interface FlexModalProps { children: ReactNode; defaultOpen?: boolean; open?: boolean; onOpenChange?: (open: boolean) => void; } export declare function FlexModal(props: FlexModalProps): import("@emotion/react/jsx-runtime").JSX.Element; export { Close, Content, Overlay, Portal, Root, Title, Trigger };