@rtdui/dialogs
Version:
React dialogs base on Rtdui components
32 lines (31 loc) • 913 B
TypeScript
import { type PortalProps } from "@rtdui/core";
export interface DialogsProps {
/** Target element of Portal component */
target?: PortalProps["target"];
/** Warning label when content is dirty */
dirtyWarningLabel?: string;
/** global confirm button text for confirm or prompt mode
* @default "OK"
*/
confirmLabel?: string;
/** global cancel button text for confirm or prompt mode
* @default "Cancel"
*/
cancelLabel?: string;
/** global close button text for alert mode
* @default "Close"
*/
closeLabel?: string;
className?: string;
}
/**
* 该组件只能使用一次. 通常作为React项目根组件的第一个孩子.
*
* @example
* <App>
* <Dialogs />
* <Others />
* </App>
* 然后就可以在App内的任意位置调用
*/
export declare function Dialogs(props: DialogsProps): import("react/jsx-runtime").JSX.Element;