Skip to content

CapturePin

A numbered pin on a commented element; focuses the comment’s anchor and calls onSelect. Needs a CommentProvider.

Source

import { CapturePin } 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
id* string — The comment (anchor) id the pin opens.
index* number — Position among the pins; shown as `index + 1`.
left* number — —
onSelect* (…) => void — —
top* number — —