react-instantsearch
Version:
⚡ Lightning-fast search for React, by Algolia
8 lines (7 loc) • 443 B
TypeScript
import React from 'react';
import type { SortByProps as SortByUiComponentProps } from '../ui/SortBy';
import type { UseSortByProps } from 'react-instantsearch-core';
type UiProps = Pick<SortByUiComponentProps, 'items' | 'value' | 'onChange'>;
export type SortByProps = Omit<SortByUiComponentProps, keyof UiProps> & UseSortByProps;
export declare function SortBy({ items, transformItems, ...props }: SortByProps): React.JSX.Element;
export {};