CartShopPayButton
The CartShopPayButton
component renders a ShopPayButton
for the items in the cart.
It must be a descendent of a CartProvider
component.
Example code
Anchor link to section titled "Example code"
Name | Type | Description |
---|---|---|
className? | Omit<React.ComponentProps<typeof ShopPayButton>, 'variantIds'>) |
A string of classes to apply to the div that wraps the shop-pay-button web component. |
width? | string |
A string that's applied to the CSS custom property (variable) --shop-pay-button-width for the Buy with Shop Pay component. |
Component type
Anchor link to section titled "Component type"The CartShopPayButton
component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.