onSubmit | (submission: PromptSubmission) => void | - | Called with the message and its files on Send or Enter. |
| Called with the message and its files on Send or Enter. |
streaming | boolean | false | An answer is arriving: Send turns into Stop. |
| An answer is arriving: Send turns into Stop. |
onStop | () => void | - | Called from Stop while streaming. |
Called from Stop while streaming. |
children | ReactNode | - | Drawn before Send, such as a Model Picker. |
| Drawn before Send, such as a Model Picker. |
placeholder | string | Ask anything | The empty field's hint. |
| The empty field's hint. |
defaultValue | string | | Starting text. |
| Starting text. |
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Turns the whole input off. |
| Turns the whole input off. |
className | string | - | |
|
focus | boolean | string | true | |
|