UNPKG

@trellixio/roaster-coffee

Version:
17 lines 722 B
import * as React from 'react'; /** The possible levels for a Toast component. */ export declare type ToastLevel = 'success' | 'error'; export interface ToastProps { /** The level of the toast, determines its color. */ level?: ToastLevel; /** Additional class names to apply to the toast. */ className?: string; /** Function to be called when the toast is closed. */ onClose?(): void; /** The message to display in the toast. */ message: React.ReactNode; /** Whether or not the toast can be closed by the user. */ closable?: boolean; } export declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>; //# sourceMappingURL=Toast.d.ts.map