Skip to main content

Interface: CategoryDescriptionProps

Defined in: components/CategoryDescription.tsx:13

Properties

category?

optional category?: Category

Defined in: components/CategoryDescription.tsx:29

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

Extra CSS class applied to the root element.


collapsed?

optional collapsed?: boolean

Defined in: components/CategoryDescription.tsx:35

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


language

language: string

Defined in: components/CategoryDescription.tsx:20

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


maxLength?

optional maxLength?: number

Defined in: components/CategoryDescription.tsx:42

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