DepictProvider component from the installed package and use this component to wrap your entire application’s component tree as shown:
display.
YourDisplay is a type definition of your specific display. Please ask Depict for this.
Optional configuration
Beyondmerchant, market, and locale, DepictProvider accepts the following options:
Customising price formatting
Price formatting is part of thelocale object. It applies to the price filter, result counts, and prices in the search modal; prices inside your own productCard are formatted by you. The type and its defaults:
price_formatting_:
Limits and behavior
- Mount exactly one
DepictProviderper page — a second mounted instance throws an error. To use Depict on multiple routes, mount the provider once at the top of your component tree. - Multiple
SearchPageorCategoryPageinstances on the same page are supported, but each needs a uniquestateKeyprop (for example"1","2", …) so their URL and history state stay separate; a duplicatestateKeythrows. Set the samestateKeyon aBreadCrumbs/QuickLinkscomponent to associate it with a specificCategoryPage. localeis required and must be a locale object imported from@depict-ai/react-ui/locales, not a string.
Review the types or the reference to see what you can configure on DepictProvider.

