Skip to content

Search

The Search page contains search results.

The Search page offers a similar experience to the Category page. This is why it shares Product List Item portals.

You can link directly to the search page results.

import React from 'react';
import { Link } from '@shopgate/engage/components';
import { SEARCH_PATH } from '@shopgate/engage/search';
/**
* @param {string} searchPhrase Plain text search phrase
**/
const Component = ({ searchPhrase }) => (
<Link href={`${SEARCH_PATH}?s=${encodeURIComponent(searchPhrase)}`}>Open search results for {searchPhrase}</Link>
);
export default Component;