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-sendholding the up arrow and the.wrticks) +p.cmp-q. data-state: empty (default: send button dim) ·typing(send fillsivory) ·sending(ticks replace the arrow) ·lockedandoff(dashed, 60% opacity, field not usable — say why in the placeholder or.cmp-q)..overkeeps the border lit but disables send once the quota is spent..cmp-qis the quota line (#8d8b81);.lowbrightens it when a few questions remain;.warnadds an alert glyph for a blocking reason.- The field grows to 72px, then scrolls. Give the textarea an
aria-label; the quota line isaria-live="polite". - Consumer provides the examples, the quota text, the state and the submit handler.