instantsearch-ui-components
Version:
Common UI components for InstantSearch.
14 lines (13 loc) • 533 B
TypeScript
/** @jsx createElement */
import type { ComponentChildren, ComponentProps, Renderer } from '../../types';
export type AutocompleteProps = Omit<ComponentProps<'div'>, 'children'> & {
children?: ComponentChildren;
classNames?: Partial<AutocompleteClassNames>;
};
export type AutocompleteClassNames = {
/**
* Class names to apply to the root element
*/
root: string | string[];
};
export declare function createAutocompleteComponent({ createElement }: Renderer): (userProps: AutocompleteProps) => JSX.Element;