@engie-group/fluid-design-system-react
Version:
Fluid Design System React
84 lines (83 loc) • 2.5 kB
TypeScript
import React from 'react';
export declare const NJToast: React.ForwardRefExoticComponent<import("../../utils/typeHelpers").HTMLAttributesWithoutComponentProps<"div", {
closeButtonRef?: React.RefObject<HTMLButtonElement>;
} & {
id: string;
createdAt?: number;
gaugeLabel?: string;
iconName?: string;
title?: string;
children: React.ReactNode;
isInverse?: boolean;
hasCloseIcon?: boolean;
onClose?: (id: string) => void;
shouldDismiss?: boolean;
dismissAfter?: number;
ariaProps?: {
role: "status" | "alert";
"aria-live": "assertive" | "off" | "polite";
};
closeToast?: (id: string) => void;
className?: string;
}> & {
closeButtonRef?: React.RefObject<HTMLButtonElement>;
} & {
id: string;
createdAt?: number;
gaugeLabel?: string;
iconName?: string;
title?: string;
children: React.ReactNode;
isInverse?: boolean;
hasCloseIcon?: boolean;
onClose?: (id: string) => void;
shouldDismiss?: boolean;
dismissAfter?: number;
ariaProps?: {
role: "status" | "alert";
"aria-live": "assertive" | "off" | "polite";
};
closeToast?: (id: string) => void;
className?: string;
} & React.RefAttributes<HTMLDivElement>>;
export declare const NJMemoizedToast: React.NamedExoticComponent<import("../../utils/typeHelpers").HTMLAttributesWithoutComponentProps<"div", {
closeButtonRef?: React.RefObject<HTMLButtonElement>;
} & {
id: string;
createdAt?: number;
gaugeLabel?: string;
iconName?: string;
title?: string;
children: React.ReactNode;
isInverse?: boolean;
hasCloseIcon?: boolean;
onClose?: (id: string) => void;
shouldDismiss?: boolean;
dismissAfter?: number;
ariaProps?: {
role: "status" | "alert";
"aria-live": "assertive" | "off" | "polite";
};
closeToast?: (id: string) => void;
className?: string;
}> & {
closeButtonRef?: React.RefObject<HTMLButtonElement>;
} & {
id: string;
createdAt?: number;
gaugeLabel?: string;
iconName?: string;
title?: string;
children: React.ReactNode;
isInverse?: boolean;
hasCloseIcon?: boolean;
onClose?: (id: string) => void;
shouldDismiss?: boolean;
dismissAfter?: number;
ariaProps?: {
role: "status" | "alert";
"aria-live": "assertive" | "off" | "polite";
};
closeToast?: (id: string) => void;
className?: string;
} & React.RefAttributes<HTMLDivElement>>;