Composer
The message field. Omit value and the field keeps its own draft.
Example
<Composer
disabled={false}
running={false}
placeholder="Message the copilot"
onSubmit={send}
/>
Props
| Prop | Type | |
|---|---|---|
disabled | boolean | |
running | boolean | Shows stop when onStop is set. |
onSubmit | (text) => void | |
onStop | () => void | |
placeholder | string | Default Message the copilot. |
submitLabel | string | Default Send. |
hint | string | |
value | string | Controlled text. |
onValueChange | (value) => void | |
buttonName | string | Accessible name of the send button. Default Send. |
submitDisabled | boolean | Disables the button while the field stays editable, so a turn can be queued. |
embedded | boolean | Renders the field only. The workbench frame already draws the footer. |
extra | ReactNode | |
classes | ComposerClasses | root, input, submit. |
className | string | Added on the root element. |
style | CSSProperties | Added on the root element. |
Render it inside SourcingTheme so the Nova tokens apply.