Atelier UI

Search components…

Search components…

AI Chat Input

AI chat composer with auto-grow, attachments, model picker and Enter to send.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

AIChatInputProps

Also accepts all props of Omit<React.ComponentProps<"form">, "onSubmit">

PropTypeDefaultDescription
onSubmit* required(submission: ChatSubmission) => void——
modelsstring[]["Claude Opus 5", "Claude Sonnet 5", "Claude Haiku 4.5"]—
placeholderstring"Ask anything…"—
loadingbooleanfalseShows a stop button instead of send while a response streams
onStop() => void——
maxHeightnumber200Max textarea height in px before it scrolls

Install

$ npx shadcn@latest add https://chromotion.dev/r/ai-chat-input.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this