Interface: ProductDescriptionProps
Defined in: components/ProductDescription.tsx:15
Properties
className?
optionalclassName?:string
Defined in: components/ProductDescription.tsx:44
Extra CSS class applied to the root element.
collapsed?
optionalcollapsed?:boolean
Defined in: components/ProductDescription.tsx:34
When true, the description is initially collapsed to maxLength characters.
A "Read more" / "Read less" toggle is shown.
Defaults to false.
labels?
optionallabels?:Record<string,string>
Defined in: components/ProductDescription.tsx:47
Translated labels: readMore, readLess.
language?
optionallanguage?:string
Defined in: components/ProductDescription.tsx:27
Language code used to resolve the correct localised description. Defaults to 'NL'.
maxLength?
optionalmaxLength?:number
Defined in: components/ProductDescription.tsx:41
Maximum number of characters shown when collapsed. Set to 0 to display the entire description without truncation. Defaults to 0.
product
product:
Product|Cluster
Defined in: components/ProductDescription.tsx:21
Product or Cluster object.
The component reads product.descriptions (an array of LocalizedString)
and renders the matching language entry as HTML.