UI / Components / agent-native / CommentsRail

CommentsRail

Side rail with All / Mine / Resolved filters.

Right-side rail that lists every comment on the current document. Filter tabs across the top (All / Mine / Resolved). Click a thread to scroll-and-highlight its anchor. Pair with `<CommentThread>`.

$npx dock-ui add comments-rail

Usage

import { CommentsRail } from "@/components/ui/comments-rail";

<CommentsRail threads={threads} onJump={scrollToAnchor} />

Install

via CLI
$ npx dock-ui add comments-rail
Writes the file(s) directly to your components/ui/ folder. You own the code.
For agents
curl -L https://ui.trydock.ai/r/comments-rail.json
Returns a JSON manifest with file paths + contents. Agent-readable, LLM-fetchable.
← All components
Themes·Component kit · glossary
View on GitHub →