UNPKG

861 BTypeScriptView Raw
1import * as React from 'react';
2import { TransitionCallbacks, TransitionComponent } from '@restart/ui/types';
3import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
4import { Variant } from './types';
5export interface ToastProps extends TransitionCallbacks, BsPrefixProps, React.HTMLAttributes<HTMLElement> {
6 animation?: boolean;
7 autohide?: boolean;
8 delay?: number;
9 onClose?: (e?: React.MouseEvent | React.KeyboardEvent) => void;
10 show?: boolean;
11 transition?: TransitionComponent;
12 bg?: Variant;
13}
14declare const _default: BsPrefixRefForwardingComponent<"div", ToastProps> & {
15 Body: BsPrefixRefForwardingComponent<"div", import("./ToastBody").ToastBodyProps>;
16 Header: React.ForwardRefExoticComponent<import("./ToastHeader").ToastHeaderProps & React.RefAttributes<HTMLDivElement>>;
17};
18export default _default;