CartLineProvider
The CartLineProvider
component creates a context for using a cart line.
Example code
Anchor link to section titled "Example code"
Name | Type | Description |
---|---|---|
children | ReactNode |
Any ReactNode elements. |
line | Cart['lines'][1] |
A cart line object. |
Component type
Anchor link to section titled "Component type"The CartLineProvider
component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.