react-instantsearch
Version:
⚡ Lightning-fast search for React, by Algolia
20 lines (19 loc) • 631 B
TypeScript
import React from 'react';
type ShowMoreButtonProps = React.ComponentProps<'button'> & {
isShowingMore: boolean;
translations: ShowMoreButtonTranslations;
};
export type ShowMoreButtonTextOptions = {
/**
* Whether the widget is showing more items or not.
*/
isShowingMore: boolean;
};
export type ShowMoreButtonTranslations = {
/**
* Alternative text for the "Show more" button.
*/
showMoreButtonText: (options: ShowMoreButtonTextOptions) => string;
};
export declare function ShowMoreButton({ isShowingMore, translations, ...props }: ShowMoreButtonProps): React.JSX.Element;
export {};