Skip to content

Latest commit

Β 

History

History
88 lines (68 loc) Β· 2.14 KB

File metadata and controls

88 lines (68 loc) Β· 2.14 KB

πŸš€ Quick Installation Guide

Copy & Paste Installation

Step 1: Copy the Library

# Copy fever-components folder to your project root
cp -r fever-components /path/to/your/project/

Step 2: Install Dependencies

# Required dependencies
npm install class-variance-authority clsx lucide-react

# If using TypeScript (recommended)
npm install -D @types/react @types/react-dom typescript

Step 3: Import CSS

// In your main App.tsx or layout file (REQUIRED)
import './fever-components/src/styles/base.css';

Step 4: Import Components

// Import any components you need
import { Button, Input, Modal, Card } from './fever-components/src';

// Or import everything
import * as Fever from './fever-components/src';

βœ… Verification

Test your installation:

import './fever-components/src/styles/base.css';
import { Button } from './fever-components/src';

function TestComponent() {
  return (
    <Button variant="primary" onClick={() => alert('It works!')}>
      Test Fever Components
    </Button>
  );
}

πŸ”§ Troubleshooting

CSS Not Loading?

  • Ensure you imported base.css in your main app file
  • Check that the path to fever-components is correct

TypeScript Errors?

  • Install TypeScript dependencies: npm install -D typescript @types/react @types/react-dom
  • Ensure your tsconfig.json includes the fever-components folder

Components Not Found?

  • Verify the import path matches your folder structure
  • Check that fever-components/src/index.ts exists

πŸ“ Your Project Structure Should Look Like:

your-project/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ App.tsx              # Import base.css here
β”‚   β”œβ”€β”€ components/
β”‚   └── ...
β”œβ”€β”€ fever-components/        # The copied library
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ docs/
β”‚   └── package.json
β”œβ”€β”€ package.json
└── ...

🎯 Next Steps

  1. Explore Components: Check out fever-components/docs/README.md
  2. See Examples: Review fever-components/docs/API.md
  3. Customize: Read fever-components/docs/INTEGRATION.md

That's it! Your Fever Component Library is ready to use. πŸ”₯