Course Feed

Course listing feed

Marketing BlockEducation

Overview

Mirrors the BlogFeed pattern but for courses. Displays one featured course in a prominent split layout (image + metadata), followed by a three-column grid of secondary CourseCard items.

Usage

import { CourseFeed } from "@leanicon/web-builder-library";

Default

Featured course with image, instructor, tags, and three secondary course cards.

Sharp corners

Set corners="sharp" to remove border-radius from all images and cards.

Custom read-more label

Override the link text via readMoreLabel.

When courses is empty, only the featured hero section is rendered.

When image is omitted from the featured course, the text column spans the full width.

Minimal

Only the required title on the featured course, no secondary courses.

Dark mode

Sharp corners — dark mode

Minimal — dark mode

Props

Prop

Type

Default

Description

featuredCourse

Course

—

The prominent hero course (required)

courses

Course[]

—

Secondary courses shown in the grid (required)

readMoreLabel

string

"View course"

Text for the read-more link on the featured course

corners

"rounded" | "sharp"

"rounded"

Image and card border-radius style

colorScheme

"light" | "dark"

—

Force light or dark mode

className

string

—

Additional CSS classes on root

Notes

  • Course is the same type used by CourseCard — import from course-card.
  • When image is omitted from the featured course, the text column spans the full width.
  • When courses is empty, only the featured hero section is rendered.
  • corners="sharp" propagates to both the featured image and the CourseCard grid items.
  • Dark mode: pass colorScheme="dark" or place inside a .dark ancestor.

Props

NameTypeDefaultRequiredDescription
featuredCourseCourse—Yes
coursesCourse[]—Yes
readMoreLabelstringView courseNo
cornersenumroundedNo
colorSchemeenum—No
classNamestring—No