Skip to main content

Interface: ProductDescriptionProps

Defined in: components/ProductDescription.tsx:13

Properties

className?

optional className?: string

Defined in: components/ProductDescription.tsx:42

Extra CSS class applied to the root element.


collapsed?

optional collapsed?: boolean

Defined in: components/ProductDescription.tsx:32

When true, the description is initially collapsed to maxLength characters. A "Read more" / "Read less" toggle is shown. Defaults to false.


language?

optional language?: string

Defined in: components/ProductDescription.tsx:25

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


maxLength?

optional maxLength?: number

Defined in: components/ProductDescription.tsx:39

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:19

Product or Cluster object. The component reads product.descriptions (an array of LocalizedString) and renders the matching language entry as HTML.