ProductTitle

The ProductTitle component renders a span element (or the type of HTML element specified by the as prop) with the product's title. It must be a descendent of the ProductProvider component.

Example code

Props

Name Required Description
as No The HTML element to wrap the title. If not specified, then the title is wrapped in a span element.

Alias

The ProductTitle component is aliased by the Product.Title component. You can use whichever component you prefer.

Component type

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