Solarus Design system
Updated · 20 Nov 2026 solarus.run
Solarus app · Conversation

Composer

The question field at the bottom of the conversation pane: a textarea, a round send button, a quota line, and an examples popover.

Notes

  • Markup: .cmp-wrap > .cmp-sug (examples, shown with .open) + form.cmp[data-state] (textarea.cmp-in + button.cmp-send holding the up arrow and the .wr ticks) + p.cmp-q.
  • data-state: empty (default: send button dim) · typing (send fills ivory) · sending (ticks replace the arrow) · locked and off (dashed, 60% opacity, field not usable — say why in the placeholder or .cmp-q). .over keeps the border lit but disables send once the quota is spent.
  • .cmp-q is the quota line (#8d8b81); .low brightens it when a few questions remain; .warn adds an alert glyph for a blocking reason.
  • The field grows to 72px, then scrolls. Give the textarea an aria-label; the quota line is aria-live="polite".
  • Consumer provides the examples, the quota text, the state and the submit handler.