Type a message and press Enter to send
Type and press Enter, click the mic to dictate, or open the plus menu.
A single-line composer with a plus menu, dictation with a live timer, and a voice mode bar.
Type and press Enter to send. The plus button opens Attach files and Teach a task. The mic starts dictation, or hold Cmd + D: the input shows Listening with a timer and transcribed text lands in the field. Stop keeps the text, the arrow sends it. The waveform button opens the voice bar, where chat returns to text and the red button ends the call.
Options for the assembled component.
placeholderstringHint in the empty input. Defaults to Message.
onSend(text: string) => voidCalled with the trimmed text. The input clears afterwards.
onAttach(files: File[]) => voidCalled with the files picked from Attach files.
onTeach() => voidCalled when Teach a task is chosen.
onVoiceChange(active: boolean) => voidCalled when voice mode opens or closes.
transcribe(emit: (text: string) => void) => () => voidStarts a transcript source and returns its stop function. Each emitted chunk is appended to the input while listening.
classNamestringExtra class on the root.
_prompt-composer-line/prompt-composer-line.tsxThe pill bar. Owns the text, the menu, the dictation shortcut and the switch to voice mode.
_prompt-composer-line/plus-menu.tsxAttach files and Teach a task. Arrow keys move, Escape returns focus to the plus button.
_prompt-composer-line/voice-bar.tsxVoice mode: orange blob, level trail, settings, back to text, mute and end.
_prompt-composer-line/use-dictation.tsListening state, the elapsed timer and the start and stop of a transcript source.
_prompt-composer-line/prompt-composer-line.cssEvery color and size as tokens on .pl, with a dark theme and reduced-motion handling.
Recreated from reference screenshots. Colors and sizes are sampled from them.
Type a message and press Enter to send
Type and press Enter, click the mic to dictate, or open the plus menu.