UNPKG

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