Ephraim Duncan

AI Chat with File Attachments

Heroes 28

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

    162
  • Stats cards with links

    Stats cards with links

    134
  • Form Layout

    Form Layout

    102
  • File Upload

    File Upload

    97
  • login

    login

    86
  • Share Dialog

    Share Dialog

    56
  • Form

    Form

    53
  • Login & Signup

    Login & Signup

    52

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Hero Section

    Hero Section

    445
  • Aero Hero-3

    Aero Hero-3

    618
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    442