UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

26 lines 1.42 kB
/// <reference types="react" /> import { TooltipPosition } from '../Tooltip'; export interface NotificationDrawerGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'title'> { /** Content rendered inside the group */ children?: React.ReactNode; /** Additional classes added to the group */ className?: string; /** Notification drawer group count */ count: number; /** Adds styling to the group to indicate expanded state */ isExpanded: boolean; /** Adds styling to the group to indicate whether it has been read */ isRead?: boolean; /** Callback for when group button is clicked to expand */ onExpand?: (event: any, value: boolean) => void; /** Notification drawer group title */ title: React.ReactNode; /** Truncate title to number of lines */ truncateTitle?: number; /** Position of the tooltip which is displayed if text is truncated */ tooltipPosition?: TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end'; /** Sets the heading level to use for the group title. Default is h1. */ headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; } export declare const NotificationDrawerGroup: React.FunctionComponent<NotificationDrawerGroupProps>; //# sourceMappingURL=NotificationDrawerGroup.d.ts.map