Augeo AI Docs
Augeo Design SystemComponents

CommentItem

One reply to a post, from one author, holding text, a GIF, a voice note, or a mix.

CommentItem

CommentItem draws one reply to a post. It holds text, a GIF, a voice note, or a mix of them, under the author's name and the time. The GIF's title sits behind the image and names it, so a GIF that fails to load still says what it was. There is no bubble. The footer sits in the text column, where a host puts a Reply action and the replies, and threaded draws a line from the avatar down to them. highlighted marks the comment a link pointed at with a tint that fades once. The design system has no router, so a host that links the author to a profile passes renderAuthorLink, and the name keeps its truncation through the classes it hands over.

Storybook

Loading

Props

Prop

Type

Also takes the attributes of the element it renders.

Tokens

Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.

  • --augds-background-sunken-1
  • --augds-border-subtle
  • --augds-foreground-primary
  • --augds-foreground-secondary
  • --augds-foreground-tertiary
  • --augds-radius-primitive-20

Source

  • src/components/ui/comment-item/comment-item.tsx