Free components for building your own support agent — bring any backend.Want the agent too? Inflection resolves support requests inside your app.

Conversation

Composer

The input row. Enter sends, Shift+Enter breaks, IME-safe, autosizing.

Install

npx shadcn@latest add https://ui.inflection.network/r/composer.json

Pulls in utils, use-autosize-textarea automatically.

Usage

actions

busy

Props

NameTypeDescription
onSend*(text: string) => voidCalled with the trimmed message. The field clears itself.
busybooleanA reply is in flight. Disables send, not typing.
disabledbooleanNo session, or the conversation ended. Disables the field.
actionsReactNodeUtility icons shown while the field is empty; replaced by send once there is text.
leadingReactNodeControls to the left of the field — a mic, an attachment button.
placeholderstringDefault: "Type a message…"

* required