Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/academy-course-cards.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/education/education1.tsx instead.
Usage
The file also exports education1Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Education1, education1Demo } from "@/components/blocks/education/education1"; export default function Page() { return <Education1 {...education1Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small uppercase label above the hairline rule; only rendered when set. |
| heading | ReactNode | none | Section heading in the left column of the header row. |
| description | string | undefined | Short intro text in the right column of the header row. |
| courses | CourseCard[] | none | Course cards rendered in a fixed 3-column grid. |
| className | string | none | Extra classes for the outer section element. |
Types
type LessonItem = { label: string; status: "complete" | "pending" }; type CourseCard = { category: string; title: string; lessonCount: string; checklist: LessonItem[]; };
Behavior notes
- The checklist inside each card is static illustrative data, not a real progress tracker; "complete" items render a filled check icon and "pending" items render an outline circle, purely for visual variety.
- courses always renders in a fixed 3-column grid on desktop regardless of item count; on mobile it stacks to a single column.
- eyebrow and description are both optional and independent of each other; the header row still lays out cleanly with only a heading present.
- Nothing in this block is interactive or clickable; it is a purely presentational catalog section.
More Education Blocks
View all →Institutional Quick Facts
Quick facts grid displaying key institutional statistics with a large value, label, and short description per tile.
Global Partnerships Grid
Global partnerships section showcasing partner institutions with location details and yearly exchange statistics.
Mission and Vision Statement
Side-by-side mission and vision text blocks with an inspirational leadership quote below.
Social Media Links Grid
Social media connection section with platform cards showing handle and follower count.
Education Social Proof
Social proof section pairing key stats (rating, enrollment, completion rate) with a featured student testimonial.
Faculty Testimonials Grid
Grid of faculty testimonials with instructor photos, teaching-philosophy quotes, and years of experience.