fanyucomponents
Version:
一款以 純邏輯為核心、無樣式綁定 的 React 元件套件
15 lines (14 loc) • 362 B
TypeScript
import React from "react";
import { ModalContainerProps } from "../types";
export declare const useModal: (initOption?: {
isShow?: boolean;
}) => {
isShow: boolean;
Open: () => void;
Close: () => void;
Toggle: () => void;
Container: {
(props: ModalContainerProps): React.ReactPortal | null;
displayName: string;
};
};