AI Interfaces
A ready-to-wire chat interface for AI product surfaces. Message list with user and assistant bubbles, a textarea that grows as you type, a circular send button, and suggestion chips shown when the conversation is empty. A blinking cursor on the last message signals streaming. Wire it to any streaming API (OpenAI, Anthropic, Vercel AI SDK) by swapping the send handler.
Live preview
No extra dependencies. React 18+ and Tailwind CSS v3+ assumed. Save as AiChatInterface.tsx.
Paste the prompt into the tool you already use. Each version is written specifically for that tool, matched to the same design constraints so the output stays consistent.
Build components/AiChatInterface.tsx. Layout: a rounded-2xl card (max-w-3xl, bg-white, border 1px #E5E5E5) with three regions vertically: (1) message list (px-6 py-6, gap-4, auto-scroll to latest); (2) suggestion chip row shown only when messages is empty (2-4 pill chips with border, rounded-full, px-3 py-1.5, text-[13px], hover:bg-[#F5F5F5]); (3) input row with a textarea that grows from 44px to 160px and a circular send button (bg-[#2B65F6], text-white, w-9 h-9, right-arrow char inside). Message bubble styles: user bubble aligned right, bg-[#2B65F6] text-white, rounded-2xl px-4 py-2.5 max-w-[75%]; assistant bubble aligned left, bg-[#F5F5F5] text-black, same shape; when a message has streaming:true, show a blinking cursor character at the end. Font-sans throughout, font-normal to font-medium max. State: messages array, input string, handleSend that appends the user message and calls props.onSend. Props: initialMessages?, suggestions?, onSend?:(text:string)=>void, placeholder?. Client component ("use client"). No extra deps. Reduced-motion: no blink. Responsive from 375px. Single default export.AI Interfaces
AI Copilot Sidebar (Right-Panel Assistant)
AI copilot sidebar panel for React and Next.js apps, slides in from the right with quick actions and chat input.
AI Interfaces
Command Palette (⌘K Search Modal)
⌘K command palette React component with search, keyboard navigation, and grouped results.
Scroll & Motion
Parallax Storytelling Hero Section
Full-screen parallax hero section for React, cinematic image reveal on scroll with a single big headline per panel.
Copy the source file from the "Copy code" button and save it into your components folder. Add any listed dependencies (React 18 or later and Tailwind CSS v3 or later are always required, plus framer-motion or gradflow if the component lists them). Import and render the component wherever you want it. Every prop is optional and defaulted.
Yes. Every component takes props for its content (headline, subtitle, image URL, CTA, and so on) and uses Tailwind classes throughout, so you can restyle without touching the logic. For deeper design changes, paste the prompt into Claude Code, Cursor, Lovable, Replit, or Codex and describe your brand tokens, spacing, or motion tweaks.
Yes. Everything on this page is free to copy, adapt, and ship in commercial projects. No attribution required. If you post a public showcase we always appreciate a link back.
All five prompts produce the same design. Claude Code and Codex are best when you want the component slotted into a project with existing conventions. Cursor is ideal for editing inside your IDE with the file open. Lovable and Replit spin up a fresh preview fastest, useful for a quick play.
Yes. The source files are plain React 18 client components. They run on any framework that supports React 18 and Tailwind CSS v3. If a component needs the "use client" directive (all of them do here, since they use hooks), keep the directive at the top of the file when you paste.