Debian Codegraph @

node/@patternfly/react-core/dist/js/components/NotificationBadge/NotificationBadge.d.ts

raw
1 /// <reference types="react" />
2 import { ButtonProps } from '../Button';
3 export declare enum NotificationBadgeVariant {
4 read = "read",
5 unread = "unread",
6 attention = "attention",
7 plain = "plain"
8 }
9 export interface NotificationBadgeProps extends Omit<ButtonProps, 'variant'> {
10 /** Adds an accessible label to the notification badge. */
11 'aria-label'?: string;
12 /** Icon to display for attention variant. */
13 attentionIcon?: React.ReactNode;
14 /** Content rendered inside the notification badge. */
15 children?: React.ReactNode;
16 /** Additional classes added to the notification badge. */
17 className?: string;
18 /** A number displayed in the badge alongside the icon. */
19 count?: number;
20 /** Icon to display in the notification badge. */
21 icon?: React.ReactNode;
22 /** Flag for applying expanded styling and setting the aria-expanded attribute on the
23 * notification badge.
24 */
25 isExpanded?: boolean;
26 /** Determines the variant of the notification badge. */
27 variant?: NotificationBadgeVariant | 'read' | 'unread' | 'attention' | 'plain';
28 /** Flag indicating whether the notification badge animation should be triggered. Each
29 * time this prop is true, the animation will be triggered a single time.
30 */
31 shouldNotify?: boolean;
32 /** Callback for when the animation of the notification badge icon ends.
33 */
34 onAnimationEnd?: (event: React.AnimationEvent<HTMLButtonElement>) => void;
35 }
36 export declare const NotificationBadge: React.FunctionComponent<NotificationBadgeProps>;
37 //# sourceMappingURL=NotificationBadge.d.ts.map