CommentThread

App

Generic threaded comments with replies, like counts, delete-own actions, and a composer. Domain-agnostic — pass comments + handlers.

With replies

Preview
  • AB
    Alice Brooks

    I think this feature would be great for the landing page.

    • Y
      You

      Agreed. I can open a PR.

  • MR
    Marcus Reed

    The mobile breakpoint should be reviewed as well.

Code
<%- include('modules/app/CommentThread', {
  comments: comments,
  currentUserId: 'me',
  replyAction: '/comments/reply',
  deleteAction: '/comments/delete'
}) %>

Empty state

Preview

No comments yet. Be the first to comment.

Code
<%- include('modules/app/CommentThread', {
  comments: [],
  currentUserId: 'me'
}) %>
Source modules/app/CommentThread.ejs