Components
<AisHitsPerPage>
Lets users choose the number of hits per page.
Usage
<AisInstantSearch :configuration="configuration">
<AisHitsPerPage
:items="[
{ label: '8 hits', value: 8, default: true },
{ label: '16 hits', value: 16 },
{ label: '32 hits', value: 32 },
]"
/>
</AisInstantSearch>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{ label: string; value: number; default?: boolean }> | required | Available page-size options. |
transformItems | function | undefined | Transforms option items before rendering. |