accept | string | undefined | Not set | File types the attach, paste and drop paths take |
Actions.children | React.ReactNode | Not set | — |
Attach.accept | string | undefined | Not set | Overrides the prompt's `accept`. |
Attach.aria-label | string | undefined | Not set | Accessible name. |
Attach.children | React.ReactNode | Not set | Custom glyph. Defaults to a plus. |
Attach.className | string | undefined | Not set | — |
Attach.disabled | boolean | undefined | Not set | — |
Attach.multiple | boolean | undefined | Not set | — |
Attachments.className | string | undefined | Not set | — |
Attachments.itemsRequired | PromptAttachment[] | Not set | — |
Attachments.onRemove | ((id: string) => void) | undefined | Not set | Omit to render the strip read-only. |
childrenRequired | React.ReactNode | Not set | Prompt parts: Attachments, Textarea, Toolbar |
defaultValue | string | undefined | | Initial text when uncontrolled |
disabled | boolean | undefined | false | Nothing can be typed or sent |
errorMessage | React.ReactNode | Not set | Why the message can't be sent, shown under the text |
Info.childrenRequired | React.ReactNode | Not set | — |
invalid | boolean | undefined | false | The message can't be sent as written; pair with errorMessage |
maxRows | number | undefined | 8 | Rows before the text area scrolls |
minRows | number | undefined | 1 | Rows before the text area grows |
onFiles | ((files: File[]) => void) | undefined | Not set | Receives files from Attach, paste and drop |
onStop | (() => void) | undefined | Not set | Stop the response while working |
onSubmit | ((value: string) => void) | undefined | Not set | Called with the text when the message is sent |
onValueChange | ((value: string) => void) | undefined | Not set | Called with the new text on every change |
pending | boolean | undefined | false | Sending: Send shows a spinner after a second and Enter waits |
Picker.aria-labelRequired | string | Not set | What the choice is about (Model, Agent); read before the choice. |
Picker.className | string | undefined | Not set | — |
Picker.defaultValue | string | undefined | Not set | Initial value when uncontrolled. |
Picker.disabled | boolean | undefined | Not set | — |
Picker.icon | React.ReactNode | Not set | Leading glyph. |
Picker.onValueChange | ((value: string) => void) | undefined | Not set | — |
Picker.optionsRequired | PromptPickerOption[] | Not set | — |
Picker.placeholder | string | undefined | Not set | Shown before anything is chosen. |
Picker.value | string | undefined | Not set | Controlled value. |
placeholder | string | undefined | Ask, search or chat… | Hint in the empty text area |
readOnly | boolean | undefined | false | The text can be read and selected, not changed or sent |
Submit.aria-label | string | undefined | Not set | Accessible name of the send action. |
Submit.children | React.ReactNode | Not set | Custom glyph. Defaults to an up arrow. |
Submit.className | string | undefined | Not set | — |
Submit.menu | React.ReactNode | Not set | Menu items for other ways to send (queue, send later). A click still
sends; right-click, a long press, ArrowDown, Shift+F10 or the context-menu
key opens the menu. |
Submit.stopLabel | string | undefined | Not set | Accessible name of the stop action while working. |
submitOnEnter | boolean | undefined | true | Enter sends, Shift+Enter breaks the line |
Textarea.placeholder | string | undefined | Not set | Override the prompt's placeholder. |
Toolbar.childrenRequired | React.ReactNode | Not set | — |
value | string | undefined | Not set | Controlled text |
working | boolean | undefined | false | The assistant is responding: the work wash plays, Send becomes Stop when onStop is set, the text stays editable |