UNPKG

react-cascading-menu

Version:

A powerful React cascading dropdown component with multi-selection, search functionality, and hierarchical navigation. Perfect for building category selectors, dependent dropdowns, and nested menu systems with TypeScript support.

15 lines (14 loc) 528 B
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 };