@kadconsulting/dry
Version:
KAD Reusable Component Library
19 lines (18 loc) • 499 B
TypeScript
/// <reference types="react" />
export interface DropdownItemInfo {
label: string;
path: string;
handleClick: () => void;
note?: string;
disabled?: boolean;
}
export interface DropdownItemProps extends React.HTMLAttributes<HTMLElement> {
/** Support @testing-library/react `screen.getByTestId` */
'data-testid'?: string;
label: string;
icon: any;
notificationAmount?: number;
items?: DropdownItemInfo[];
note?: string;
handleClick?: () => void;
}