SortButton

A button that when clicked, opens a drawer containing the Sort view. The name of the currently selected sortOption is display in the button text.

Import
import SortButton from 'react-storefront/SortButton'

Props

NameTypeDefaultDescription
modelobject

A instance of SearchResultsModelBase

classesobject

CSS classes

drawerPropsobject{}

Props to pass to the underlying Sort component.

titlestring'Sort'

Text for the button label and the drawer header. Defaults to "Sort".