Prompt bar
Where people write to an agent: attachments, model, voice and send.
Type a message and press Enter. + and the model open their menus.
API Reference
The PromptBar component is a wrapper around the form element with a text input, attachments, a model picker and a send button.
| Prop | Type | Default |
|---|---|---|
shape | "pill""default" | "pill" |
value | string | "" |
placeholder | string | "Write a message" |
attachments | File[] | [] |
model | string | — |
disabled | boolean | false |
onSubmit | (value: string) => void | — |