shelving
Version:
Toolkit for using data in JavaScript.
13 lines (12 loc) • 714 B
TypeScript
import { type ReactElement } from "react";
import type { Callback } from "../../util/function.js";
import type { ButtonVariants } from "../form/Button.js";
import type { OptionalChildProps } from "../util/props.js";
export interface DialogProps extends OptionalChildProps {
onClose?: Callback;
}
export declare const Dialog: import("react").MemoExoticComponent<({ children, onClose, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element>;
export interface DialogCloseButtonProps extends ButtonVariants, OptionalChildProps {
}
/** Button that closes its wrapping dialog with an X icon. */
export declare function DialogCloseButton({ children, ...variants }: DialogCloseButtonProps): ReactElement;