CartLineAttributes

The CartLineAttributes component takes a function as a child and calls that function for each of the cart line's attributes. It must be a descendent of a CartLineProvider component.

Example code

Props

Name Required Description
children Yes A function that takes an object as an argument and returns a ReactNode.

Render props

The CartLineAttributes components provides an object with the following keys as a render prop:

Key Description
key The key value for the attribute.
value The value for the attribute.

Component type

The CartLineAttributes component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.

Alias

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