Skip to main content

Hit and Hits

The Hits component displays a list of search results. Each individual result is a Hit.

Default configuration

The Hit component comes with no parameters, slots, or variants configured. The Hits component comes with:

Parameters

  • Hits Parameter: This corresponds to the <hits> widget provided by Algolia. Through this parameter you can display a list of results.

Slots

  • hitComponent The hitComponent slot allows the Hit component to be added into a composition. Additional components can be configured to appear in the slot.

There are no default configurations for Variants.

Learn more about configuring components

Add to a composition

When you add the Hits component to a composition, the parameter doesn't need any additional configuration. Additional settings can be specified within your application code.