@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
23 lines (22 loc) • 786 B
TypeScript
import React from "react";
import { SimpleDialogProps } from "./SimpleDialog";
export interface AlertDialogProps extends Omit<SimpleDialogProps, "intent"> {
/**
* set to true if alert dialog displays a success message
*/
success?: boolean;
/**
* set to true if alert dialog displays a warning
*/
warning?: boolean;
/**
* set to true if alert dialog displays a strong message about errors or disruptive actions
*/
danger?: boolean;
}
/**
* Special element to display alert notification in modal dialogs.
* Inherits all properties from `SimpleDialog`, except `intent`.
*/
export declare const AlertDialog: ({ children, success, warning, danger, ...otherProps }: AlertDialogProps) => React.JSX.Element;
export default AlertDialog;