# Application Comments and Annotation: Spreadsheet Cell Comments

A budget sheet with corner markers on flagged cells beside a rail showing the selected cell thread and a list of other commented cells.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/spreadsheet-cell-comments
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Comments and Annotations](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations)
- Created: 2026-07-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/spreadsheet-cell-comments.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-comments-annotations-spreadsheet-cell-comments
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: avatars, button
- Installs to: `@/components/blocks/application-pro/comments-annotations/spreadsheet-cell-comments`

## About this block

Spreadsheet Cell Comments is the Google Sheets style cell
review surface: a Q3 marketing budget grid where four flagged
cells carry a corner comment marker, paired with a side rail
that opens the full thread for the selected cell. C4 is
active, so Priya Nair explains the freelance retainer reclass
and Jordan Lee asks her to note it on the Finance tab. Below
the thread, a compact list shows the other commented cells:
Jordan Lee on E2, Maya Chen on B6, and Avery Stone on D7,
each with its ref, author, and note snippet.

Cells and threads are typed arrays, and a flagged set plus a
single active ref decide which cells wear a marker and which
one lights up alongside its rail thread. The selected cell
and its open thread share the same highlight, keeping the
render branch simple. The footer note tells users markers
survive sorting and filtering and that resolving a thread
clears the marker for everyone on the sheet.

## When to use

Reach for this block as the cell comment layer of any
spreadsheet or data grid tool, wired to your comment endpoint
and the currently selected cell. Bind Reply to your thread
append call and Resolve to your thread-close mutation.

A natural flow around it on an Application Pro page:

**Before**

- [Data tables](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables)

**After**

- [Comment sidebar](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations)
- [Reports](https://www.shadcn-ui-blocks.com/blocks/application-pro/reports)

## What you can display

One strong use is the budget review above. Other cell anchored
configurations:

- **Forecast checks.** Model cells with reviewer notes on the
  assumptions a finance lead wants defended.
- **Data cleanup.** Import rows with notes on the values an
  analyst flags for a second look.
- **Planning grids.** Roadmap cells with notes on the dates a
  stakeholder wants confirmed before sign off.

> Tip: the paired highlight between a flagged cell and its
> open thread is what keeps the grid readable, so let the
> active ref drive both and reviewers never lose the cell in
> question.

## More in Application Comments and Annotations

- [Annotation Layers Rail](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/annotation-layers-rail)
- [Annotation Toolbar Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/annotation-toolbar-blueprint)
- [Canvas Pin Comments](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/canvas-pin-comments)
- [Code Review Thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/code-review-thread)
- [Comment Assignments](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/comment-assignments)
- [Comment Composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/comment-composer)
- [Comment Notification Inbox](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/comment-notification-inbox)
- [Comment Sidebar](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/comment-sidebar)
- [Inline Annotation Thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/inline-annotation-thread)
- [Mention Picker Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/mention-picker-blueprint)
- [Outdated Comments Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/outdated-comments-panel)
- [Pending Review Tray](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/pending-review-tray)
- [Reaction Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/reaction-bar)
- [Resolved Comments List](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/resolved-comments-list)
- [Suggestion Review Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/suggestion-review-row)
- [Video Timestamp Comments](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/video-timestamp-comments)
