UNPKG

1.29 kBTypeScriptView Raw
1import * as React from 'react';
2import { TooltipPosition } from '../Tooltip';
3export interface NotificationDrawerGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'title'> {
4 /** Content rendered inside the group */
5 children?: React.ReactNode;
6 /** Additional classes added to the group */
7 className?: string;
8 /** Notification drawer group count */
9 count: number;
10 /** Adds styling to the group to indicate expanded state */
11 isExpanded: boolean;
12 /** Adds styling to the group to indicate whether it has been read */
13 isRead?: boolean;
14 /** Callback for when group button is clicked to expand */
15 onExpand?: (event: any, value: boolean) => void;
16 /** Notification drawer group title */
17 title: string | React.ReactNode;
18 /** Truncate title to number of lines */
19 truncateTitle?: number;
20 /** Position of the tooltip which is displayed if text is truncated */
21 tooltipPosition?: TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
22}
23export declare const NotificationDrawerGroup: React.FunctionComponent<NotificationDrawerGroupProps>;
24//# sourceMappingURL=NotificationDrawerGroup.d.ts.map
\No newline at end of file