@raona/components
Version:
React components used at Raona to work with SPFx
17 lines (16 loc) • 524 B
TypeScript
/// <reference types="react" />
/**
* The interface to define a CategoryMenu category
*/
export interface CategoryMenuEntity {
/** The category identification (because JSX.Element) is not valid as index type */
id: string;
/** The category label */
label: string | JSX.Element;
/**
*
* @param event fired when the category is clicked
* @param selectedCategory
*/
onClick(event: React.MouseEvent<HTMLAnchorElement>, selectedCategory: CategoryMenuEntity): void;
}