widgets poweredBy

Edit this page

Description

The poweredBy widget is used to display the logo to redirect to Algolia.

Live example

You can find an example at the end of the page or a live example in our widget showcase.

Usage

Usage
const search = instantsearch( /* parameters */ );

const widget = instantsearch.widgets.poweredBy({ theme: [string], url: [string], }: PoweredByWidgetOptions);
search.addWidget(widget);

Options

PoweredByWidgetOptions

  • theme[string]

    The theme of the logo (“light” or “dark”).

  • url[string]

    The URL to redirect to.

Widget

  • render[function]

    Called after each search response has been received

  • getConfiguration[function]

    Let the widget update the configuration of the search with new parameters

  • init[function]

    Called once before the first search

Example

search.addWidget(
  instantsearch.widgets.poweredBy({
    container: '#poweredBy-container',
    theme: 'dark',
  })
);

Can't find what you are looking for? Open an issue, we'll get back to you.