CartCheckoutButton
The CartCheckoutButton
component renders a button that redirects to the checkout URL for the cart. It must be a descendent of a CartProvider
component.
Example code
Anchor link to section titled "Example code"
Name | Type | Description |
---|---|---|
children | ReactNode |
A ReactNode element. |
Component type
Anchor link to section titled "Component type"The CartCheckoutButton
component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.