UNPKG

589 BTypeScriptView Raw
1import type { MenuProps as MenuUiComponentProps } from '../ui/Menu';
2import type { UseMenuProps } from 'react-instantsearch-core';
3type UiProps = Pick<MenuUiComponentProps, 'items' | 'onRefine' | 'createURL' | 'canToggleShowMore' | 'onToggleShowMore' | 'isShowingMore' | 'translations'>;
4export type MenuProps = Omit<MenuUiComponentProps, keyof UiProps> & UseMenuProps & {
5 translations?: Partial<UiProps['translations']>;
6};
7export declare function Menu({ attribute, limit, showMore, showMoreLimit, sortBy, transformItems, translations, ...props }: MenuProps): JSX.Element;
8export {};