010
A prompt box that grows as you type, with attachments, a model menu, an approval toggle and a mic that opens into a live level meter, plus a send button that only lights up when there's something to send.
akachat input·composer
Run this in any project set up for the shadcn CLI. It copies the Prompt Bar source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/prompt-bar.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { PromptBar } from "@/components/prompt-bar";
export default function Page() {
return <PromptBar />;
}A free React component in the Conversation collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Prompt Bar source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| placeholder | string | "Ask anything or attach a file…" |
| models | PromptBarModel[] | defaultModels |
| defaultModel | string | — |
| apps | PromptBarApp[] | defaultApps |
| defaultApps | string[] | ["calendar", "mail"] |
| defaultApproval | boolean | true |
| transcript | string | "Find a 30 minute slot with Priya next week and draft the invite." |
| onSend | (payload: PromptBarSendPayload) => void | — |
| className | string | — |