@etsoo/materialui
Version:
TypeScript Material-UI Implementation
56 lines (55 loc) • 1.22 kB
TypeScript
import React from "react";
import { ButtonProps } from "@mui/material/Button";
import { Breakpoint } from "@mui/material/styles";
export interface DialogButtonProps extends ButtonProps {
/**
* Button label
*/
buttonLabel?: string;
/**
* Dialog content
*/
content: string;
/**
* Show content in pre component
*/
contentPre?: boolean;
/**
* Default is label
*/
dialogTitle?: string;
/**
* Disable the scroll lock behavior.
* @default false
*/
disableScrollLock?: boolean;
/**
* Show fullscreen dialog
*/
fullScreen?: boolean;
/**
* If `true`, the dialog stretches to `maxWidth`.
*
* Notice that the dialog width grow is limited by the default margin.
* @default false
*/
fullWidth?: boolean;
/**
* Other layouts
*/
inputs?: React.ReactNode;
/**
* Max width of the dialog
*/
maxWidth?: Breakpoint | false;
/**
* Icon button
*/
icon?: React.ReactNode;
}
/**
* Dialog button
* @param props Props
* @returns Component
*/
export declare function DialogButton(props: DialogButtonProps): import("react/jsx-runtime").JSX.Element;