Skip to main content

Content Detail Header

The ContentHeader component displays the title, description, and image of a Course or Learning Path. All content types except learning paths can also display rating and ratingsCount information.

✨ View Component in Storybook

Installation

npm install @thoughtindustries/content

Props

NameRequiredTypeDescription
contentKindYesstringThe contentKind (e.g. learningPath, course)
slugYesslugThe slug of the content to display
showStarsNobooleanControls whether rating is displayed
showImageNobooleanControls whether detail image is displayed

Example Code

import { ContentHeader } from '@thoughtindustries/content';

export function MyComponent() {
return (
<ContentHeader
contentKind={contentKind}
slug={courseSlug}
showStars={true}
showImage={true}
/>
);
}