Skip to content

50+ open-source generative AI apps you can clone, deploy, and monetize — image generators, video tools, virtual try-ons, AI SaaS templates, and platform integrations. One-click Vercel deploy on every template.

824 B
Raw Blame

AI Agent

A premium React component for AI interactions.

Installation

To use this component in another project, run:

npm install git+https://github.com/jaiprasad04/ai-agent.git

Usage

1. Import the Component

import { AiAgent } from 'ai-agent';

2. Import the Styles

You must import the CSS file for the component to look correct:

import 'ai-agent/dist/tailwind.css';

3. Example

import React from 'react';
import { AiAgent } from 'ai-agent';
import 'ai-agent/dist/tailwind.css';

function App() {
  return (
    <div className="App">
      <AiAgent />
    </div>
  );
}

export default App;

Development

If you want to modify the component:

  1. Clone the repo
  2. Run npm install
  3. Run npm run build to update the dist/ folder