Skip to main content
Import the DepictCategoryProvider component from the installed package and create an instance of DepictCategoryProvider:

Optional configuration

Beyond merchant, market, listingQuery, and locale, the constructor accepts the following options: Price formatting is customised through the locale object, the same way as on the search provider — see customising price formatting.

Limits and behavior

  • You can’t create more than one DepictCategoryProvider on the same page unless you give each one a unique uniqueInstanceKeyForState (for example "1", "2", …), because instance state lives in the URL and history.state and would otherwise collide.
Review the types or the reference to see what you can configure on the DepictCategoryProvider.
If you’re seeing a type error after providing YourDisplay, don’t fret and go to the next step