Skip to content
Design System
GitHub

Prompt composer

v0.64.0, changelogBeta

Where someone writes to a model: a form with a growing text box, Enter to send (never during IME composition), attachments, Send that becomes Stop, and disabled reasons and limits in words.

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

  • button
  • combobox
  • list
  • listitem
  • status
  • textbox
  • Follows the WAI-ARIA pattern Combobox.
  • Announces changes through a live region, so a screen reader reads an update without focus moving to it.

Keyboard

KeysAction
EnterSend (not while an input method is composing; not while the answer streams)
Shift+EnterNew line
TabFrom the text to the attach button, the toolbar, then Send (Stop while the answer streams)
Enter / SpaceOn Send or Stop: send, or stop the answer; on a file's ×: remove it, focus back in the text

Colour contrast

Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.