@nosto/preact

    Type Alias AutocompleteElementProps

    AutocompleteElementProps: {
        activeClass?: string;
        as?: string;
        children: ComponentChildren;
        class?: string;
        filter?: { field: string; value: string[] };
        hit?: {
            _redirect?: string;
            keyword?: string;
            productId: string;
            url?: string;
        };
        onClick: (event: Event) => void;
        query?: SearchQuery;
        url?: string;
    } & JSX.HTMLAttributes & JSX.SVGAttributes

    Type declaration

    • OptionalactiveClass?: string

      Append CSS class to element is selected with keyboard

    • Optionalas?: string

      Render element as specified element

    • children: ComponentChildren

      Rendered content.

    • Optionalclass?: string

      Append CSS class to element

    • Optionalfilter?: { field: string; value: string[] }

      Filter to use on keyword click

    • Optionalhit?: { _redirect?: string; keyword?: string; productId: string; url?: string }

      Get product data for analytics and redirection

    • onClick: (event: Event) => void

      Handle click event

    • Optionalquery?: SearchQuery

      Execute new search with specified query on the selection

    • Optionalurl?: string

      Redirect to specified url on click

    MMNEPVFCICPMFPCPTTAAATR