Kedhareswer Naidu

AI Prompt Input Box

AI chats 1

About

AI prompt input box for app builders and chat products: a liquid-glass composer with a typing placeholder, platform chips, a keyboard-friendly model menu, file attachments and a breathing send button. Enter sends; an optional demo build log then morphs into a preview card. Wire onSubmit to your own generator.

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

Code

How AI Prompt Input Box is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import PromptComposer from "@/components/ui/prompt-composer"

export default function Demo() {
  return (
    <div
      style={{
        width: "100%",
        minHeight: "100svh",
        display: "grid",
        placeItems: "center",
        padding: "48px 20px",
        background:
          "radial-gradient(40% 35% at 30% 35%, rgba(95,178,242,.28), transparent 70%), radial-gradient(35% 30% at 72% 65%, rgba(196,140,255,.22), transparent 70%), #08080a",
      }}
    >
      <PromptComposer onSubmit={(s) => console.log("build", s)} />
    </div>
  )
}

Dependencies

More by Kedhareswer Naidu

View all
  • Glassmorphism Folder Cards

    Glassmorphism Folder Cards

    3.1K
  • GitHub Contribution Graph 3D Heatmap

    GitHub Contribution Graph 3D Heatmap

    1.8K
  • Morph Gallery

    Morph Gallery

    1.5K
  • Halftone Wordmark Footer

    Halftone Wordmark Footer

    1.4K
  • Hanging Polaroid Image Carousel

    Hanging Polaroid Image Carousel

    855
  • Glass Cards

    Glass Cards

    738
  • Tiger Tear Reveal

    Tiger Tear Reveal

    663
  • Particle Animation

    Particle Animation

    653

More in AI chats

View all
  • AI Actions

    AI Actions

    324
  • Color Picker

    Color Picker

    97
  • Agent Chat

    Agent Chat

    18
  • Environment Variables

    Environment Variables

    12
  • Commit

    Commit

    19
  • AI Task List

    AI Task List

    162
  • Prompt with Model Picker

    Prompt with Model Picker

    2
  • Message Thread

    Message Thread

    41