File: AlertGroup.d.ts

package info (click to toggle)
cockpit 354-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308,956 kB
  • sloc: javascript: 775,606; python: 40,351; ansic: 35,655; cpp: 11,117; sh: 3,511; makefile: 580; xml: 261
file content (25 lines) | stat: -rw-r--r-- 1,286 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/// <reference types="react" />
export interface AlertGroupProps extends Omit<React.HTMLProps<HTMLUListElement>, 'className'> {
    /** Additional classes added to the AlertGroup */
    className?: string;
    /** Alerts to be rendered in the AlertGroup */
    children?: React.ReactNode;
    /** @beta Flag to indicate whether Alerts are animated upon rendering and being dismissed. This is intended
     * to remain false for testing purposes only.
     */
    hasAnimations?: boolean;
    /** Toast notifications are positioned at the top right corner of the viewport */
    isToast?: boolean;
    /** 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. */
    isLiveRegion?: boolean;
    /** Determine where the alert is appended to */
    appendTo?: HTMLElement | (() => HTMLElement);
    /** Function to call if user clicks on overflow message */
    onOverflowClick?: () => void;
    /** Custom text to show for the overflow message */
    overflowMessage?: string;
    /** Adds an accessible label to the alert group. */
    'aria-label'?: string;
}
export declare const AlertGroup: React.FunctionComponent<AlertGroupProps>;
//# sourceMappingURL=AlertGroup.d.ts.map