Skip to content
Pattern

Discussion

BetaBeta — the props contract is close to final, but small breaking changes can still land.

Comment thread with ⌘ Enter posting, nested replies, inline editing, and hover actions.

Composition

Comment with a reply

  • discussion section
    • <DiscussionComposer>
      • <ChatComposer>
        • mod-enter submit key
        • <ChatComposerTextarea />
        • <ChatComposerSubmit />
        </ChatComposer>
      </DiscussionComposer>
    • <DiscussionComment>
      • <ChatMessage>
        • flat layout
        • <ChatMessageFooter>
          • Reply
          </ChatMessageFooter>
        • <ChatMessageReplies>
          • <DiscussionComment />
          • <DiscussionComposer />
          </ChatMessageReplies>
        • <ChatMessageActions />
        </ChatMessage>
      </DiscussionComment>

Installation

Registry command
See registry manifest

Usage

Library dependencies

Owned source

This template’s recipe and private support files. Public dependencies stay linked above.

Block recipesrc/registry/blocks/control-ui/discussion.tsx
Discussion markdown inputsrc/registry/blocks/control-ui/discussion-markdown-input.tsx
src/registry/blocks/control-ui/discussion.tsx