Skip to main content

Interface: CategoryDescriptionProps

Defined in: components/CategoryDescription.tsx:15

Properties

category?

optional category?: Category

Defined in: components/CategoryDescription.tsx:31

Propeller Category object. The component reads category.description (an array of LocalizedString) and renders the matching language entry as HTML.


className?

optional className?: string

Defined in: components/CategoryDescription.tsx:47

Extra CSS class applied to the root element.


collapsed?

optional collapsed?: boolean

Defined in: components/CategoryDescription.tsx:37

When true (default), the description is truncated to maxLength characters and a "Read more" / "Read less" toggle is shown.


labels?

optional labels?: Record<string, string>

Defined in: components/CategoryDescription.tsx:50

Translated labels: readMore, readLess.


language

language: string

Defined in: components/CategoryDescription.tsx:22

Language code used to resolve the correct localised description from category.description.


maxLength?

optional maxLength?: number

Defined in: components/CategoryDescription.tsx:44

Maximum number of characters to display before truncating. Only applies when collapsed is true. Defaults to 200.