React Storefront |

BackNav

Import
import BackNav from 'react-storefront/BackNav'

Props

NameTypeDefaultDescription
textstring

The text to display representing the previous location.

urlstring

The url to navigate to when clicked. If omitted, this component will navigate back in the history when clicked.

searchResultsshape :

When displaying this component on a search results page (such as a subcategory), you can supply the SearchResultsModelBase instance here and this component will allow you to switch between grid and list views.