UNPKG

987 BTypeScriptView Raw
1import React from 'react';
2import { Variant } from './types';
3import SafeAnchor from './SafeAnchor';
4import { TransitionType } from './helpers';
5export interface AlertProps extends React.HTMLProps<HTMLDivElement> {
6 bsPrefix?: string;
7 variant?: Variant;
8 dismissible?: boolean;
9 show?: boolean;
10 onClose?: (a: any, b: any) => void;
11 closeLabel?: string;
12 transition?: TransitionType;
13}
14declare const AlertHeading: import("./helpers").BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>, unknown>;
15declare const AlertLink: import("./helpers").BsPrefixRefForwardingComponent<SafeAnchor, unknown>;
16declare type Alert = React.ForwardRefExoticComponent<AlertProps> & {
17 Link: typeof AlertLink;
18 Heading: typeof AlertHeading;
19};
20declare const Alert: Alert;
21export default Alert;