Skip to main content

Interface: ProductDescriptionProps

Defined in: components/ProductDescription.tsx:15

Properties

className?

optional className?: string

Defined in: components/ProductDescription.tsx:44

Extra CSS class applied to the root element.


collapsed?

optional collapsed?: 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?

optional labels?: Record<string, string>

Defined in: components/ProductDescription.tsx:47

Translated labels: readMore, readLess.


language?

optional language?: string

Defined in: components/ProductDescription.tsx:27

Language code used to resolve the correct localised description. Defaults to 'NL'.


maxLength?

optional maxLength?: 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.