Skip to content
Back

Comment ThreadPro

One comment with replies – an assistant reports what it did, folds open details and answers @mentions.

oxyn add comment-thread

Comment

2 messages
Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Atlas
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Review threads on a doc, design, ticket or pull request.
  • Nested replies (Thread::reply attaches anything deeper than max_depth to the deepest allowed ancestor), reactions that toggle per person, edit and delete for your own comments (delete keeps a placeholder when there are replies), @ mentions (mention_query, mention_matches, mention_spans), agent comments marked as such, and Resolve, which folds the thread into a chip.

When not to use

  • Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
  • The model menu of an AI chat: use Model Picker instead.
  • The prompt box for an agent, in six layouts: use Composer instead.

Installation

Comment Thread is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add comment-thread

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Default

Reply, or ask @Atlas: your reply lands as just now, then Atlas thinks and answers.

Comment

2 messages
Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Atlas
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Details

Edit completed folded open.

Comment

2 messages
Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Atlas
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

People only

The agent does not answer replies.

Comment

2 messages
Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Atlas
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Drawn avatars

Oxyn extra: illustrated portraits instead of photos.

Comment

2 messages
Mara Lind

/Edit Rename every “customers” to “members” on the pricing page.

Atlas
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

AgentCommentThread

PropTypeDefaultDescription
notesrequiredVec<ThreadNote>—Messages.
me(String, u8)("Alex Rivera".to_string(), 3)Your name and portrait seed.
agentString"Atlas"The agent's name.
answerString"Done – I also updated the meta description."The agent's answer to a reply (empty: it does not answer).
titleString"Comment"Card title.
openboolDefault::default()Fold the first status line open at the start.
avatarsString"photo"`photo` or `drawn` (illustrated portraits).
nowrequiredClockMs—Shared clock (thinking delay).
on_replyEventHandler<String>—A reply was posted.
on_closeOption<EventHandler<()>>Default::default()Close pressed (shows the ✕).

PhotoAvatar

PropTypeDefaultDescription
seedrequiredu8—Portrait seed.
sizef3224.0Size px.
drawnboolDefault::default()Draw the illustrated portrait instead of the photo.

AgentOrb

PropTypeDefaultDescription
sizef3224.0Size px.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterSend the reply
TabReach the status line to fold its details open

Accessibility

  • Status lines are buttons with aria-expanded; the thread is a polite log that announces new replies.
From the spec
  • Composer is a combobox with a listbox of people and aria-activedescendant.
  • Each comment is an article labelled author · time; deleted reads "Deleted comment".
  • Reaction chips are toggle buttons with aria-pressed and "👍 2, including you"; reply toggles expose aria-expanded.

Motion & interaction

Timing
  • New comments rise in over 240 ms; reaction counts roll; picker and confirm rows slide in from the side (200 ms).
  • Reduced motion: no travel or transitions.

Responsive behaviour

  • Fills its container up to 420 px.
Edge cases (spec)
  • Below 420 px the composer hides its avatar and replies indent 12 px; actions stay visible on touch.

Notes for AI

  • Import AgentCommentThread, PhotoAvatar, AgentOrb from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AgentCommentThreadEl in oxyn_gpui.
  • Props to set first: notes, now, seed.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI