Skip to content

Add Chat and Histogram components, plus an Agent example - #42861

Open
mdo wants to merge 4 commits into
v6-devfrom
mdo/chat-histogram-components
Open

Add Chat and Histogram components, plus an Agent example#42861
mdo wants to merge 4 commits into
v6-devfrom
mdo/chat-histogram-components

Conversation

@mdo

@mdo mdo commented Aug 22, 2026

Copy link
Copy Markdown
Member
  • Adds .chat, a message thread component with bubbles, grouped bubbles, a .chat-message-you variant, and .chat-status rows for tool calls
  • Adds .chat-thinking, an animated text gradient for live agent states, with a static fallback for reduced motion
  • Adds .histogram, a compact conversation rail that shows one bar per message and expands to labels on hover or focus
  • Wires the histogram to Scrollspy, so the rail marks the message in view
  • Adds an Agent example that uses both components with chips, spinners, and a composer
  • Adds docs pages for both components, sidebar entries, and example screenshots

mdo added 3 commits August 21, 2026 20:54
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.
@github-actions

Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 71.4%, saving 133.3 KB.

Filename Before After Improvement Visual comparison
site/static/docs/[version]/assets/img/examples/agent-dark@2x.png 67.3 KB 19.2 KB 71.5% View diff
site/static/docs/[version]/assets/img/examples/agent@2x.png 66.9 KB 19.3 KB 71.1% View diff
site/static/docs/[version]/assets/img/examples/agent-dark.png 26.6 KB 7.4 KB 72.0% View diff
site/static/docs/[version]/assets/img/examples/agent.png 25.9 KB 7.4 KB 71.4% View diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant