@roochnetwork/rooch-sdk-kit
Version:
Rooch SDK Kit
15 lines (14 loc) • 601 B
TypeScript
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").JSX.Element;