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

Example code


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

Render props

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

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

Component type

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


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