@primer/react
Version:
An implementation of GitHub's Primer Design System using React
26 lines (25 loc) • 639 B
TypeScript
import React from "react";
//#region src/DataTable/ErrorDialog.d.ts
type TableErrorDialogProps = React.PropsWithChildren<{
/**
* Provide an optional title for the dialog
* @default 'Error'
*/
title?: string;
/**
* Provide an optional handler to be called when the user confirms to retry
*/
onRetry?: () => void;
/**
* Provide an optional handler to be called when the user dismisses the dialog
*/
onDismiss?: () => void;
}>;
declare function ErrorDialog({
title,
children,
onRetry,
onDismiss
}: TableErrorDialogProps): React.JSX.Element;
//#endregion
export { ErrorDialog, TableErrorDialogProps };