CommentRail
A right comment rail; only the content scrolls, keeping the divider reachable.
Import
Section titled “Import”import { CommentRail } from "@flanksource/clicky-ui/comments";No dedicated Storybook demo is available for this component yet.
The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | — |
launcherLabel |
string |
Open comments |
— |
onOpenChange |
(…) => void |
— | — |
onWidthChange |
(…) => void |
— | — |
open |
boolean |
true |
Controlled visibility: a closed rail becomes a floating launcher. |
scrollRef |
Ref<HTMLDivElement> |
— | — |
stacked |
boolean |
— | Match the host's existing stacked layout. |
style |
CSSProperties |
— | — |
width |
number |
— | — |