@engie-group/fluid-design-system-react
Version:
Fluid Design System React
54 lines (53 loc) • 1.7 kB
TypeScript
import React from 'react';
import { NJModalContentProps } from '../modal-content/NJModalContent';
export type NJModalInformationProps = NJModalContentProps & {
/**
* Whether the modal should display a spinner or not
*/
isLoading?: boolean;
};
export declare const NJModalContentInformation: React.ForwardRefExoticComponent<{
children?: React.ReactNode;
icon?: string;
iconVariant?: import("../icon").NJIconProps["variant"];
title?: string;
id?: string;
verticalCentered?: boolean;
fade?: boolean;
footer?: React.ReactNode | undefined;
centeredFooter?: boolean;
closeLabel?: string;
onClose?: () => void;
onBackdropClick?: () => void;
onEscapeKey?: () => void;
className?: string;
role?: "dialog" | "alertDialog";
appendTo?: string;
shouldFitViewport?: boolean;
} & {
closeButtonRef?: React.RefObject<HTMLButtonElement>;
backdropRef?: React.RefObject<HTMLDivElement>;
} & import("../../utils/typeHelpers").HTMLAttributesWithoutComponentProps<"div", {
children?: React.ReactNode;
icon?: string;
iconVariant?: import("../icon").NJIconProps["variant"];
title?: string;
id?: string;
verticalCentered?: boolean;
fade?: boolean;
footer?: React.ReactNode | undefined;
centeredFooter?: boolean;
closeLabel?: string;
onClose?: () => void;
onBackdropClick?: () => void;
onEscapeKey?: () => void;
className?: string;
role?: "dialog" | "alertDialog";
appendTo?: string;
shouldFitViewport?: boolean;
}> & {
/**
* Whether the modal should display a spinner or not
*/
isLoading?: boolean;
} & React.RefAttributes<HTMLDivElement>>;