Report a problem or share feedback← Catalog
Ai Prompt Input
curatedtheme-awarefreesmoothui/ai-prompt-input
AI prompt composer with autogrowing textarea, attachment chips and a send-to-stop path morph.
$
npx shadcn@latest add @smoothui/ai-prompt-inputnpm 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
Similar
Compare all 4 →- Chatbeautifui/chat-composerTabbed chat panel with reasoning replies + composer. Requires the Beautiful UI foundation.css, which redefines --accent (collides with shadcn).
- Ai Reasoningsmoothui/ai-reasoningCollapsible reasoning trace: the label shimmers 'Thinking' only while isStreaming, then settles to 'Thought for 3.2s' (measured, or pass duration) and auto-collapses — until the user toggles it, after which it stops deciding for them. Muted-foreground chrome, inherits the theme; no shimmer under reduced motion.
- Prompt Barbeautifui/prompt-barBottom prompt bar with attachments/actions. Requires the Beautiful UI foundation.css, which redefines --accent (collides with shadcn).