# Application Comments and Annotation: Annotation Layers Rail

A document page mockup where marks from each reviewer form a colored layer, beside a rail of reviewers with color keys, counts, and visibility toggles.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/annotation-layers-rail
- 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/annotation-layers-rail.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-comments-annotations-annotation-layers-rail
```

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/annotation-layers-rail`

## About this block

Annotation Layers Rail pairs a document page mockup with a
per reviewer layer control: on Brand guidelines page 3 of
18, the highlighted lines carry a colored tint drawn from
each reviewer, and a side rail lists Maya Chen, Jordan Lee,
Noah Park, and Priya Nair with a color dot, avatar, mark
count, and last mark time. Noah Park is toggled off, so his
rail row goes muted and his marks clear from the page in
sync, showing exactly what a hidden layer does.

The layers are one typed array keyed by id, and the page
lines look up their layer to decide whether to render the
tinted mark or a plain rule. Hide all and Show all layers
handle the bulk toggles. The footer note states the honest
rule: each reviewer writes to their own layer, and hiding
one only changes your view while the marks stay in place
for everyone else.

## When to use

Reach for this block on any surface where several reviewers
mark the same document, wired to your annotation store and
a per user visibility preference. Bind each toggle to the
layer it controls and Hide all to the view level setting.

A natural flow around it on an Application Pro page:

**Before**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Comment sidebar](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations)

**After**

- [Inline annotation thread](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations)
- [Media gallery](https://www.shadcn-ui-blocks.com/blocks/application-pro/media-gallery)

## What you can display

One strong use is the brand guidelines review above. Other
layered annotation shapes:

- **Legal redlines.** One color per counterparty, so each
  side reads only the marks it cares about.
- **Design critique.** A layer per stakeholder over a
  shared mockup, toggled to isolate one voice at a time.
- **Map overlays.** Reviewer pins as colored layers you
  show or hide to declutter a shared plan.

> Tip: the muted rail row and cleared page moving together
> on the hidden layer is what makes the toggle read as a
> real control rather than a decorative switch.

## More in Application Comments and Annotations

- [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)
- [Spreadsheet Cell Comments](https://www.shadcn-ui-blocks.com/blocks/application-pro/comments-annotations/spreadsheet-cell-comments)
- [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)
