Product Price
Display product pricing that automatically updates based on variant selection from Product context.
Interactive Demo
Try the product price component in different configurations using the variant switcher:
Loading playground...
Component Props
contextPricenumberPrice in cents. Use this for standalone usage outside Product context. If not provided, automatically reads from Product context.
showCentsbooleanWhether to show cents in the price display. Defaults to
true.showCurrencybooleanWhether to show the currency symbol. Defaults to
false.currencystringCurrency code (e.g., "USD", "EUR"). Defaults to
"USD".localestringLocale for price formatting (e.g., "en-US", "de-DE"). Defaults to
"en-US".classNamestringCSS classes to apply to the price element.
Installation
npx merchify-cli init
This CLI will guide you through setting up Merchify components in your project