atomic-result-link

This is for:

Developer
In this article

The atomic-result-link component automatically transforms a search result title into a clickable link that points to the original item.

Properties

Property Attribute Description Type Default

hrefTemplate

href-template

Specifies a template literal from which to generate the href attribute value (see Template literals).

The template literal can reference any number of result properties from the parent result. It can also reference the window object.

For example, the following markup generates an href value such as http://uri.com?id=itemTitle.

<atomic-result-link href-template='${clickUri}?id=${raw.itemtitle}'></atomic-result-link>

string | undefined