UNPKG

@roochnetwork/rooch-sdk-kit

Version:
15 lines (14 loc) 604 B
import { ReactNode } from 'react'; export type ControlledModalProps = { /** The controlled open state of the dialog. */ open?: boolean; /** Event handler called when the open state of the dialog changes. */ onOpenChange?: (open: boolean) => void; defaultOpen?: boolean; }; export type ModalProps = { /** The trigger button that opens the dialog. */ trigger: NonNullable<ReactNode>; children: ReactNode; } & ControlledModalProps; export declare function Modal({ trigger, children, open, defaultOpen, onOpenChange }: ModalProps): import("react/jsx-runtime.js").JSX.Element;