design-infraGitHub
Report a problem or share feedback← Catalog

Ai Prompt Input

curatedtheme-awarefree

smoothui/ai-prompt-input

AI prompt composer with autogrowing textarea, attachment chips and a send-to-stop path morph.

state — subtledrop-inRefinedTechnical
$npx shadcn@latest add @smoothui/ai-prompt-input

npm deps: lucide-react, motion

Our notes

Prompt composer: autogrowing textarea, attachment chips, Enter-to-send and a send button that becomes Stop while streaming (the two lucide icons swap — not a true path morph, despite the description). Theme tokens. Pulls @smoothui/ai-core, imported by relative path (../ai-core), so keep both under components/smoothui/.
Source
SmoothUI
Kind
component
Categories
agent-ui, input
Use as
drop-in — replaces your component
Applies to
ai-chatinput
Motion
on state · subtle · motion · medium cost · respects reduced motion
Tags
ai, chat, input, textarea, composer, prompt, form, spring, complexity-high, reduced-motion
Licence
MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
Live demo
smoothui.dev
Docs
smoothui.dev