Course Card
A visually elegant, customizable component with optional Chai theme support.
Overview
Accordion can be used for FAQ sections, help sections, and other collapsible content utilities since it is very flexible.

Master the Art of Tea Blending
From Leaf to Cup
Dive deep into the world of artisanal tea crafting. Learn how to identify, blend, and brew exquisite teas from around the globe. Ideal for tea lovers and aspiring tea sommeliers.

Tea Ceremony & Culture Bootcamp
Traditions, Rituals & Brewing Mastery
Explore the elegance and mindfulness of tea ceremonies across cultures. This immersive course covers Japanese, Chinese, and British traditions with hands-on guidance and live sessions.
Installation
CLI Installation
Make sure ShadCN UI and your custom UI system are set up in your project. Then run:
Manual Installation
To manually install the CourseCard component in your project, follow these steps:
📁 1. Folder Structure
Navigate to your project’s src directory and create the following folder structure:
🧩 2. Create the Component File
Inside courseCard/, create a new file called:
🧾 3. Paste the Component Code
Paste the following code into CourseCard.tsx:
Usage
Import and use the CourseCard component like this:
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title | string | Title text shown at the top of the card | "Course Title" |
subtitle | string | Subtitle text shown below the title | "Course Subtitle" |
desc | string | Description text shown in the card | "This is a brief course description..." |
tags | string[] | Array of tags to display in the card | ["Python", "TensorFlow", "Pandas"] |
startDate | string | Start date of the course | "Starts April 12, 2025" |
duration | string | Duration of the course | "6 months" |
price | number | Current price of the course | 6999 |
originalPrice | number | Original price of the course | 8999 |
discount | string | Discount text to display | "Save 22%" |
img | string | URL of the image to display in the card | "https://images.pexels.com/photos/1181675/pexels-photo-1181675.jpeg?auto=compress&cs=tinysrgb&w=600" |
link | string | URL to redirect when the "Learn More" button is clicked | "#" |
ChaiTheme | boolean | Whether to apply Chai-themed amber color styles | false |