UNPKG

@trellixio/roaster-coffee

Version:
23 lines 1.25 kB
import React from 'react'; import { ToastProps } from '../types'; export interface ToastsContainerProps { /** The `ToastProps` object representing the toast notification to display */ toast: ToastProps; /** * A function to call when the toast notification is hidden or dismissed, with the `id` of the notification (if any) * @param id - The `id` of the toast notification that is being hidden or dismissed */ onHide(id?: string): void; /** The duration (in milliseconds) after which the toast notification should automatically close, or `false` to disable auto-closing. */ autoClose: false | number; /** A ref to the container element to which the toast notification should be appended. */ innerRef: React.ForwardedRef<HTMLDivElement>; /** CSS class name(s) to apply to the container element (optional). */ className?: string; } export declare function getAutoClose(autoClose: boolean | number, toastAutoClose: boolean | number): number | boolean; export declare function ToastsContainer({ toast, autoClose, onHide, innerRef, className }: ToastsContainerProps): React.JSX.Element; export declare namespace ToastsContainer { var displayName: string; } //# sourceMappingURL=index.d.ts.map