UNPKG

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.

20 lines (19 loc) 658 B
import React, { ReactNode } from "react"; import { ItemId, MenuGroupMap, SelectedItemType } from "../types"; interface CompleteObj { label: string; indexes: number[]; } interface Props { leafNodes: ItemId[][]; menuGroupMap: MenuGroupMap; handleTagRemoval: (selectionPath: ItemId[]) => void; handleSelectionPopulation: (selectionPath: ItemId[]) => void; layout?: "horizontal" | "vertical"; allItems: CompleteObj[]; handleBulkAddition: (items: SelectedItemType, leafId: ItemId) => void; children: ReactNode; mainParentId: ItemId; } declare const CascadingDropdown: React.FC<Props>; export default CascadingDropdown;