Skip to content

Comment thread

Nested comments with replies, times and reply / like actions.

Thread

  • Jonas Olsen

    “Decides once and every strand follows” is the best definition of a design token I have read.

    • Ilinca Sava

      Stealing this for the book.

  • Lea Kim

    Which counter was it? Asking for a lunch.

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/comment-thread.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-commentsA list of comments (<ul>); nest another inside a comment for replies.
mn-commentA comment: avatar, mn-comment-head, mn-comment-body, mn-comment-actions.

Accessibility

  • Nested lists convey who replied to whom; each comment starts with the author’s name.
  • Put times in <time> and give action buttons names that include the author (“Reply to Jonas”).
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page