svelte-meilisearch-instantsearch
Version:
Svelte wrapper for Meilisearch InstantSearch
71 lines (70 loc) • 2.17 kB
TypeScript
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: {
queryHook?: ((query: string, hook: (value: string) => void) => void) | undefined;
placeholder?: string | undefined;
searchAsYouType?: boolean | undefined;
classes?: Partial<{
/**
* Class names to apply to the root element
*/
root: string;
/**
* Class names to apply to the form element
*/
form: string;
/**
* Class names to apply to the input element
*/
input: string;
/**
* Class names to apply to the submit button
*/
submit: string;
/**
* Class names to apply to the submit button icon
*/
submitIcon: string;
/**
* Class names to apply to the reset button
*/
reset: string;
/**
* Class names to apply to the reset button icon
*/
resetIcon: string;
/**
* Class names to apply to the loading indicator
*/
loadingIndicator: string;
/**
* Class names to apply to the loading indicator icon
*/
loadingIcon: string;
}> | undefined;
translations?: Partial<{
/**
* The alternative text of the submit button.
*/
submitButtonTitle: string;
/**
* The alternative text of the reset button.
*/
resetButtonTitle: string;
}> | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {
submitIcon: {};
resetIcon: {};
loadingIcon: {};
};
};
export type SearchBoxProps = typeof __propDef.props;
export type SearchBoxEvents = typeof __propDef.events;
export type SearchBoxSlots = typeof __propDef.slots;
export default class SearchBox extends SvelteComponentTyped<SearchBoxProps, SearchBoxEvents, SearchBoxSlots> {
}
export {};