UNPKG

1.22 kBTypeScriptView Raw
1import React from 'react';
2import type { RefinementListProps as RefinementListUiComponentProps } from '../ui/RefinementList';
3import type { SearchBoxTranslations } from '../ui/SearchBox';
4import type { RefinementListWidgetParams } from 'instantsearch.js/es/widgets/refinement-list/refinement-list';
5import type { UseRefinementListProps } from 'react-instantsearch-core';
6type UiProps = Pick<RefinementListUiComponentProps, 'canRefine' | 'items' | 'onRefine' | 'query' | 'searchBox' | 'noResults' | 'canToggleShowMore' | 'onToggleShowMore' | 'isShowingMore' | 'translations'>;
7export type RefinementListProps = Omit<RefinementListUiComponentProps, keyof UiProps> & UseRefinementListProps & Pick<RefinementListWidgetParams, 'searchable' | 'searchablePlaceholder'> & {
8 translations?: Partial<UiProps['translations'] & SearchBoxTranslations & {
9 /**
10 * What to display when there are no results.
11 */
12 noResultsText: string;
13 }>;
14};
15export declare function RefinementList({ searchable, searchablePlaceholder, attribute, operator, limit, showMore, showMoreLimit, sortBy, escapeFacetValues, transformItems, translations, ...props }: RefinementListProps): React.JSX.Element;
16export {};