Card
Feature 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.
Regular Feature
This is a standard feature card without the ChaiTheme applied.
Chai Feature
This feature card has the warm ChaiTheme colors applied for a cozy feel.
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 FeatureCard 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 featureCard/, create a new file called:
🧾 3. Paste the Component Code
Paste the following code into FeatureCard.tsx:
Usage
Import and use the FeatureCard component like this:
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title | string | Title text shown at the top of the card | "Feature Title" |
description | string | Description text shown below the title | "Default feature description that explains what this feature does in detail." |
icon | string | Icon to be displayed at the top of the card | "✨" |
ChaiTheme | boolean | Whether to apply Chai-themed amber color styles | false |