react-cascading-menu
Version:
React-Cascading-Menu is a multi-selectable cascading menu component for React, providing horizontal navigation and global search for efficient option selection.
15 lines (14 loc) • 528 B
TypeScript
import React from "react";
import { Props, ItemId, FormatedSelections, SelectedItemType } from "./types";
export interface CascadingMenuRef {
getSelection: () => FormatedSelections | null;
getAllItemsSelected: () => string[][];
getSelectionsObjs: () => {
selectedItems: SelectedItemType;
activeItem: SelectedItemType;
};
leafNodes: ItemId[][];
}
declare const Index: React.ForwardRefExoticComponent<Props & React.RefAttributes<CascadingMenuRef>>;
export default Index;
export type { Props };