Getting startedComponentsDesign tokensThemingTheme synthesizerFrameworksAccessibilityUtilitiesServer renderingBrowser supportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting startedFrameworksServer renderingDesign tokensThemingTheme synthesizerTypographyUtilitiesAll componentsAccessibilityBrowser supportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Conversation

Chat transcript for an AI assistant panel. It follows new replies, but leaves a reader who scrolled up where they are.

ComponentsConversation
feedbackinteractive
<arc-conversation>

Overview

Conversation is the scrolling transcript for an AI assistant panel. Its children are `<arc-message>` elements, and each one's `speaker` sets how it looks: `user` messages align to the inline end on a faint accent tint, `assistant` messages to the inline start on a neutral surface, and `system` messages are centered and muted, for notices from the app itself. Alignment uses logical properties, so the layout mirrors in right-to-left text. While the reader is within 100px of the bottom, new or growing messages keep the view pinned to the latest. Once they scroll up to reread, the view stays put. `arc-scroll-away` and `arc-scroll-return` fire when the reader leaves that zone and comes back, with the distance from the bottom, so you can show a "jump to latest" chip that calls `scrollToEnd()`. Set the `autoScroll` property to `false` to handle scrolling yourself. There's no streaming API. A message's body is its default slot, so you stream a reply by appending text to it. With `markdown` set, the text renders through the markdown renderer and re-parses as it grows. A `pending` message shows a typing indicator in place of its body until you remove `pending`. The transcript renders in full on the server, typing dots included.

Guidelines

Do

  • Use it for a dialogue between the user and a responder, where who said what and the scroll behavior matter
  • Stream a reply by updating the message's text, for example its `textContent`, as tokens arrive
  • Add a `pending` assistant message as soon as the request goes out, then fill its slot and remove `pending` when tokens arrive
  • Pass timestamps as ISO strings
  • Set the height with the `--conversation-height` custom property, or let it fill a parent that has a height

Don't

  • Don't use it for an activity feed or event history. Use Timeline, where entries mark moments, not speakers
  • Don't use it as a general list of items. Use List
  • Don't scroll to the bottom yourself on new messages. The component already follows, and only while the reader is at the bottom
  • Don't put critical status in a system message alone. It scrolls away with the transcript
  • Don't add avatars by reflex. The slot is there for products that need them

Features

  • Under `prefers-reduced-motion`, the typing dots become a static ellipsis
  • Timestamps render as relative time through `arc-time-ago`, with the absolute date on hover
  • Each message has an `avatar` slot. None are built in

Preview

Project "Neon Tides" opened. The assistant can see your arrangement. How do I loop the chorus while I try out lead takes? Drag the **loop brace** over bars 17-24, then: 1. Press L to switch looping on 2. Arm the lead track 3. Hit record. Each pass lands on its own take lane Can it keep every take, or just the last one?

Usage

This component needs JavaScript. Use the Web Component or a framework wrapper.

<arc-conversation style="--conversation-height: 400px">
  <arc-message speaker="user" author="You" timestamp="2026-07-31T14:02:00Z">
    How do I loop the chorus while I try out lead takes?
  </arc-message>
  <arc-message speaker="assistant" author="daw[n]" markdown timestamp="2026-07-31T14:02:04Z">
    Drag the **loop brace** over bars 17-24, press L, then arm the
    lead track — every pass lands on its own take lane.
  </arc-message>
  <arc-message speaker="assistant" author="daw[n]" pending></arc-message>
</arc-conversation>

<script>
  // Streaming: fill the pending message as tokens arrive.
  const reply = document.querySelector('arc-message[pending]');
  function onToken(token) {
    reply.pending = false;
    reply.markdown = true;
    reply.textContent += token;
  }
</script>

API

autoScrollbooleantrue
Follow new content: when a message is added or grows while the reader is near the bottom, scroll to keep the latest visible. A reader who has scrolled up is never pulled back down. Defaults to true; set the property to false to leave scrolling entirely to the consumer.

Methods

scrollToEnd()
Scroll the transcript to its newest message.

Events

arc-scroll-awaydetail:{value: number}
Fired once when the reader scrolls up out of the near-bottom zone of the transcript. detail.value is the distance from the bottom in pixels.
arc-scroll-returndetail:{value: number}
Fired once when the reader comes back within the near-bottom zone. detail.value is the distance from the bottom in pixels.

Message

<arc-message>

One message in the transcript. `speaker` picks the look (user, assistant or system), `author` and `timestamp` fill the muted line above it, `markdown` renders the slotted text as Markdown, and `pending` shows the typing indicator.

authorstring''
Display name shown in the muted meta line above the bubble. Omit it and the meta line only appears when a timestamp is set.
timestampstring''
When the message was sent, as an ISO 8601 string. Rendered as house relative time ("3 minutes ago") through arc-time-ago, with the absolute date on its title.
speaker'user' | 'assistant' | 'system''user'
Whose message this is. "user" aligns to the inline end on an accent-tinted surface, "assistant" to the inline start on a neutral surface, and "system" runs centered and muted for notices in the transcript's own voice. An unrecognized value renders as "user".
pendingbooleanfalse
Renders the typing indicator (three pulsing dots) in place of the body while a reply is being produced. Under prefers-reduced-motion the dots give way to a static ellipsis.
markdownbooleanfalse
Render the slotted text through the house markdown renderer. The slot's text content is the source; it re-parses whenever the slot changes, so streaming into the slot streams through the renderer. When false, slotted content renders as-is.

See also