Skip to content
Theme
endue.ai

Components, Chat

Composer

The input where you talk to an agent.

Name in code Composer

Who should handle what?
RRia Sonnet 5.5
Draft replies to everything except the refund requests
3 tools Ria is working

The composer is the input where you talk to an agent. It is a floating surface, and the send button is an ink circle. The preview here is static. Props and accessibility behavior are settled at implementation time.

Anatomy

Part Rule
Surface card + 1px border + shadow-sm (a floating surface). The composer token holds this value
Corner radius 16
Send An ink circle (IconButton fill circle)
Stop A muted-foreground circle (IconButton neutral circle)
Picker chips The agent is a bordered chip (avatar + name). Tools and the model are chips with no border
  • While the agent is working, stop takes the place of send.
  • Small composers use the same primitive with size="sm".

What you provide

  • A placeholder that says who you are talking to and what you are doing (“Message Ria”, “Who should handle what?”).
  • The chips and buttons of the bottom row.

Markup

<div class="Composer_composer">
  <div class="Composer_input" data-empty="true">Message Ria</div>
  <div class="Composer_row">
    <button type="button" class="IconButton_btn IconButton_btn--ghost-muted IconButton_btn--md" aria-label="Attach file">…</button>
    <span class="Composer_pick Composer_pick--plain">3 tools</span>
    <span class="Composer_spacer"></span>
    <button type="button" class="IconButton_btn IconButton_btn--fill IconButton_btn--md IconButton_btn--circle" aria-label="Send">…</button>
  </div>
</div>

Don’t

  • Don’t wrap the composer in a glow or a gradient border.
  • Don’t use the star color on the send button.