# Comment Thread block

> Inset right comment thread Sheet with reply, react, resolve and open-only filter

Client discussion sheet for collaboration and review apps. Comments with reply, emoji react, resolve and reopen, open-versus-all filter and a composer. ReUI Badge, shadcn Sheet, Item, Avatar, InputGroup, DropdownMenu, ScrollArea, Tooltip.

- Type: Pro block
- Category: [Sheet](https://web.dev.reui.io/blocks/application/sheet.md)
- Page: https://web.dev.reui.io/blocks/application/sheet/sheet-5
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/sheet.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/sheet.md
- MCP: `get_block("sheet-5")`
- Built with: Avatar, Badge, Button, Dropdown Menu, Field, Input Group, Item, Scroll Area, Sheet, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Reply quoting above the composer, per comment resolve and delete, a reaction count toggle, and Mark all resolved in a header menu

## Agent notes

- Replace `INITIAL_COMMENTS`, `CURRENT_COMMENT_AUTHOR` and `COMMENT_THREAD_CONTEXT`, the Stripe thread title and logo, with your thread data
- Replies, reactions, resolves and deletes live only in `comments`, `reactedCommentIds` and `resolvedCommentIds`; persist them to your API
- Both Copy link menu items and the composer emoji, mention and attach `InputGroupButton`s have no `onClick`

## When not to use

- A feed of system events with inline approve buttons, not a discussion: use [Notifications Feed](https://web.dev.reui.io/blocks/application/sheet/sheet-7.md) (`get_block("sheet-7")`)

## Install

```bash
npx shadcn@latest add @reui/sheet-5
```

## About Sheet blocks

### When to use

- Record detail opened over a list or table: a ticket, metric, cron job, audit event, deploy, SLO or data source
- Create and edit forms in a side panel for a project, cron job, firewall rule, SLO or data connection
- Utility panels for help guides, keyboard shortcuts, an AI assistant, comments, notifications or view settings

### When not to use

- A bare side panel with your own header, body and footer, nothing prebuilt: use [Sheet](https://web.dev.reui.io/components/sheet.md) (`get_component("sheet")`)
- A persistent sidebar or navigation layout that stays around every page: use the [App Shell blocks](https://web.dev.reui.io/blocks/application/app-shell.md)
- An assistant conversation that fills the whole page rather than a side panel: use the [AI Chat blocks](https://web.dev.reui.io/blocks/ai-agents/ai-chat.md)

### Agent notes

- Each root renders a demo `SheetTrigger` button and opens on mount via `defaultOpen` or a `useState` seeded true; start it closed in your app
- Each `SheetContent` className floats it inset with `inset-y-4`, `right-4` and `rounded-xl` and sets its own width; resize it there, not in the primitive
- Each page.tsx only centers the trigger in a `min-h-svh` main with an `sr-only` h1; render the root component alone inside your page

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
