@riadvargas/svelte-algolia-instantsearch
Version:
Svelte wrapper for Algolia InstantSearch
37 lines (36 loc) • 1.28 kB
TypeScript
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;
};
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
$$bindings?: Bindings;
} & Exports;
(internal: unknown, props: Props & {
$$events?: Events;
$$slots?: Slots;
}): Exports & {
$set?: any;
$on?: any;
};
z_$$bindings?: Bindings;
}
declare const ShowMoreButton: $$__sveltets_2_IsomorphicComponent<{
class: string;
disabled: boolean;
translations: ShowMoreButtonTranslations;
isShowingMore: boolean;
onClick: (event: MouseEvent) => void;
}, {
[evt: string]: CustomEvent<any>;
}, {}, {}, string>;
type ShowMoreButton = InstanceType<typeof ShowMoreButton>;
export default ShowMoreButton;