CartLineProvider

The CartLineProvider component creates a context for using a cart line.

Example code

Props

Name Required Description
children Yes Any ReactNode elements.
line Yes A cart line object.

Alias

The CartLineProvider component is aliased by the CartLine component. You can use whichever component you prefer.

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.