Press Enter to send, Shift + Enter for a new line
Header, start and end are slots. Fill them with anything
The composer card on its own: an auto-growing textarea with header, start and end slots.
Type and press Enter to send, Shift + Enter for a new line. Use the toggles to see compact, invalid and disabled.
Options for the assembled component.
value*stringCurrent text.
onChange*(value: string) => voidCalled on every keystroke.
placeholder*stringHint in the empty input.
onEnter() => voidEnter without Shift and outside IME composition.
headerReactNodeSlot above the textarea.
startReactNodeLeft side of the toolbar.
endReactNodeRight side of the toolbar.
invalidbooleanRed border and aria-invalid.
disabledbooleanDims the card and blocks typing.
density"regular""compact"Compact fits side panels.
composer/parts/prompt-input.tsxFrame, textarea, Enter rule and three slots.
composer/parts/attach-button.tsxFill the start and header slots.
composer/parts/send-button.tsxFills the end slot.
Ported from the agent-builder prompt composer, popups rebuilt on Base UI.
Press Enter to send, Shift + Enter for a new line
Header, start and end are slots. Fill them with anything