Ephraim Duncan

AI Chat with File Attachments

Heroes 31

About

A hero-style AI prompt input box that lets users drag-and-drop or attach files, tweak generation settings from a dropdown, and submit a prompt to build software.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds AI Chat with File Attachments to your project and fits it to your theme.

Code

How AI Chat with File Attachments is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Ai04 from "@/components/ui/ai-04";

export default function Ai04Demo() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <Ai04 onSubmit={(prompt) => console.log(prompt)} />
    </div>
  );
}

Dependencies

More by Ephraim Duncan

View all
  • Stats

    Stats

    167
  • Stats cards with links

    Stats cards with links

    138
  • Form Layout

    Form Layout

    102
  • File Upload

    File Upload

    101
  • login

    login

    88
  • Share Dialog

    Share Dialog

    59
  • Login & Signup

    Login & Signup

    54
  • Form

    Form

    54

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    32
  • Cabin To Sky Film Hero

    Cabin To Sky Film Hero

  • Real Estate 3D Hero

    Real Estate 3D Hero

    83
  • Hero

    Hero

    1.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • Chroma Sense Hero

    Chroma Sense Hero

    21