Add Chat and Histogram components, plus an Agent example - #42861
Open
mdo wants to merge 4 commits into
Open
Conversation
Agent and messaging UIs need bubbles, grouped bubbles, and a place to report tool calls and thinking states. The component gives each of these a token-driven class, so consumers can restyle them without overrides.
A long chat needs a compact map. The rail shows one bar per message, and it expands to labels on hover or focus. It pairs with Scrollspy to mark the message in view.
The example shows the two new components in a full-page layout: a transcript with tool calls and a live thinking state, a histogram rail wired to Scrollspy, and a composer.
Contributor
|
Images automagically compressed by Calibre's image-actions ✨ Compression reduced images by 71.4%, saving 133.3 KB.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.chat, a message thread component with bubbles, grouped bubbles, a.chat-message-youvariant, and.chat-statusrows for tool calls.chat-thinking, an animated text gradient for live agent states, with a static fallback for reduced motion.histogram, a compact conversation rail that shows one bar per message and expands to labels on hover or focus