Card
Duo Count 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.
Projects
Overview
132Active
87Completed
Projects
Overview
132Active
87Completed
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 DoubleCountCard 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 doubleCountCard/, create a new file called:
🧾 3. Paste the Component Code
Paste the following code into DoubleCountCard.tsx:
Usage
Import and use the DoubleCountCard component like this:
Props
| Prop | Type | Description | Default |
|---|---|---|---|
title | string | Title text shown at the top of the card | "Title" |
subtitle | string | Subtitle text shown below the title | "SubTitle" |
count1 | number | First count value to display | 0 |
label1 | string | Label for the first count | "Count1" |
count2 | number | Second count value to display | 0 |
label2 | string | Label for the second count | "Count2" |
ChaiTheme | boolean | Whether to apply Chai-themed amber color styles | false |