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
Anchor link to section titled "Example code"
Name | Type | Description |
---|---|---|
as | TTag |
An HTML tag to wrap the title. If not specified, then the title is wrapped in a span element. |
Component type
Anchor link to section titled "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.