Skip to main content

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​

PropType
disabledboolean
runningbooleanShows stop when onStop is set.
onSubmit(text) => void
onStop() => void
placeholderstringDefault Message the copilot.
submitLabelstringDefault Send.
hintstring
valuestringControlled text.
onValueChange(value) => void
buttonNamestringAccessible name of the send button. Default Send.
submitDisabledbooleanDisables the button while the field stays editable, so a turn can be queued.
embeddedbooleanRenders the field only. The workbench frame already draws the footer.
extraReactNode
classesComposerClassesroot, input, submit.
classNamestringAdded on the root element.
styleCSSPropertiesAdded on the root element.

Render it inside SourcingTheme so the Nova tokens apply.