Skip to content

SearchcraftBaseSearchResultsProps

**@searchcraft/react-sdk**


@searchcraft/react-sdk / SearchcraftBaseSearchResultsProps

The props for the SearchcraftBaseSearchResults component.

Extends

  • SearchcraftBaseSearchResults

Properties

buttonLabel?

optional buttonLabel: string

The label for the button rendered when containerHref is not present for each result.

Inherited from

Components.SearchcraftBaseSearchResults.buttonLabel


buttonRel?

optional buttonRel: "noreferrer" | "noopener" | "nofollow"

The relationship between the current document and the link for the button rendered when containerHref is not present for each result.

Inherited from

Components.SearchcraftBaseSearchResults.buttonRel


buttonTarget

buttonTarget: "_self" | "_blank" | "_parent" | "_top"

Where to open the link for the button rendered when containerHref is not present for each result.

Inherited from

Components.SearchcraftBaseSearchResults.buttonTarget


containerRel?

optional containerRel: "noreferrer" | "noopener" | "nofollow"

The relationship between the current document and the link for the containing element for each result.

Inherited from

Components.SearchcraftBaseSearchResults.containerRel


containerTarget

containerTarget: "_self" | "_blank" | "_parent" | "_top"

Where to open the link for the containing element for each result.

Inherited from

Components.SearchcraftBaseSearchResults.containerTarget


customStylesForResults?

optional customStylesForResults: string | Record<string, Record<string, string>>

A custom styles object.

Inherited from

Components.SearchcraftBaseSearchResults.customStylesForResults


resultImagePlacement

resultImagePlacement: "left" | "right"

The placement of the image for each result.

Inherited from

Components.SearchcraftBaseSearchResults.resultImagePlacement


searchResultMappings?

optional searchResultMappings: `SearchResultMappings`

Formats the content rendered for each result.

Inherited from

Components.SearchcraftBaseSearchResults.searchResultMappings