Ephraim Duncan

AI Chat with File Attachments

Heroes 25

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

    147
  • Stats cards with links

    Stats cards with links

    122
  • Form Layout

    Form Layout

    96
  • File Upload

    File Upload

    85
  • login

    login

    79
  • Share Dialog

    Share Dialog

    51
  • Login & Signup

    Login & Signup

    50
  • Form

    Form

    46

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    931
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • Glass Fold

    Glass Fold

    212
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    285
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336