Chai Tabs
A visually elegant, customizable card 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.
Masala chai is a spiced tea beverage made by brewing black tea with a mixture of aromatic spices and herbs. Originating from India, it's traditionally prepared with cardamom, cinnamon, ginger, cloves, and black peppercorns, creating a warm, spicy flavor profile that's both comforting and invigorating.
Beyond traditional masala chai, explore Kashmiri kahwa with saffron and almonds, Tibetan butter tea with yak butter, or Mumbai cutting chai served in small glasses. Each region has its own unique preparation methods and ingredient combinations, reflecting local tastes and cultural traditions.
Installation
CLI Installation
Make sure ShadCN UI and your custom UI system are set up in your project. Then run:
Manual Installation
📁 1. Folder Structure
Navigate to your project’s src directory and create the following folder structure:
🧩 2. Create the Component File
Inside chaiTabs/, create a new file called:
🧾 3. Paste the Component Code
Paste the following code into ChaiTabs.tsx:
Usage
Import and use the ChaiTabs component like this:
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| tabsData | TabData[] | [{ title: "Tab 1", content: "Description 1" }, { title: "Tab 2", content: "Description 2" }] | An array of objects containing the title and content for each tab. |
| ChaiTheme | boolean | false | A boolean to enable or disable the Chai theme styling. |