Skip to main content
Pricing

Comment Thread

Pro

A nested comment display with author avatar, name, timestamp, comment body, reply button, and like action. Supports threaded replies with visual indentation. Used in discussion sections, task comments, and social feeds.

4 variants

A
Alice2h ago
Great progress on the redesign!
B
Bob1h ago
Thanks! The tokens really helped.

Variants

VariantDescriptionWhen to use
DefaultStandard comment with avatar, author, timestamp, body, and actions.Use for all top-level comments in a thread.
Collapsed

Usage Guidelines

Do

Use <article> elements with aria-label for each comment.

Don't

Nest replies more than 3 levels deep — flatten beyond that.

Do

Show relative timestamps ("2 hours ago") with a full date in a tooltip.

Don't

Auto-load hundreds of comments — use pagination or "Load more".

Do

Indent replies visually to show the parent-child relationship.

Don't

Strip markdown or formatting from comment bodies without warning.

Do

Include reply and like actions for each comment.

Don't

Code

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Design Tokens

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Accessibility

  • Each comment uses <article> with aria-label including the author and timestamp.
  • Reply and Like buttons have descriptive labels — "Reply to Alice", "Like Alice's comment".
  • Nested replies are visually indented and semantically nested within the parent article.
  • Timestamps use <time> with a datetime attribute for machine-readable dates.

Keyboard Interactions

TabMoves focus through Reply, Like, and other action buttons in sequence.
Enter/SpaceActivates the focused action (Reply, Like).