UNPKG

1.28 kBTypeScriptView Raw
1import * as React from 'react';
2export interface AlertGroupProps extends Omit<React.HTMLProps<HTMLUListElement>, 'className'> {
3 /** Additional classes added to the AlertGroup */
4 className?: string;
5 /** Alerts to be rendered in the AlertGroup */
6 children?: React.ReactNode;
7 /** Toast notifications are positioned at the top right corner of the viewport */
8 isToast?: boolean;
9 /** Turns the container into a live region so that changes to content within the AlertGroup, such as appending an Alert, are reliably announced to assistive technology. */
10 isLiveRegion?: boolean;
11 /** Determine where the alert is appended to */
12 appendTo?: HTMLElement | (() => HTMLElement);
13 /** Function to call if user clicks on overflow message */
14 onOverflowClick?: () => void;
15 /** Custom text to show for the overflow message */
16 overflowMessage?: string;
17}
18interface AlertGroupState {
19 container: HTMLElement;
20}
21export declare class AlertGroup extends React.Component<AlertGroupProps, AlertGroupState> {
22 static displayName: string;
23 state: AlertGroupState;
24 componentDidMount(): void;
25 componentWillUnmount(): void;
26 getTargetElement(): HTMLElement;
27 render(): JSX.Element;
28}
29export {};
30//# sourceMappingURL=AlertGroup.d.ts.map
\No newline at end of file