React AI chat and agent UI blocks
Prompt composers, streaming answers, tool-call cards, citations, model pickers and token usage meters for React AI apps.
Prompt composer
Auto-growing input, Enter to send, and Stop replacing Send while streaming.
Tool call, inspectable
What the model ran and with which arguments, in a native disclosure.
Answer with citations
Numbered markers that are real anchors into a source list.
Model picker
States the speed and cost trade-off, as a proper radio group.
Spend against budget
Projects month-end from the run rate, and warns on the projection.
Streaming response
Yields whole under prefers-reduced-motion, and clears its timer on unmount.
Conversation history
Grouped by recency, with delete reachable by keyboard.
Feedback with a reason
A thumbs-down asks what was wrong, turning one bit into signal.