Skip to content

CommentDraftPopover

API reference and demos for CommentDraftPopover.

Source

import { CommentDraftPopover } from "@flanksource/clicky-ui/comments";
Default · Open in Storybook

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
anchor string | null — Anchor stamped onto created comments.
autoFocus boolean — Focus the input on mount. A collapsible composer also focuses when the user expands it.
collapsible boolean — Start collapsed as an "Add a comment…" pill until clicked.
config* CommentConfig — —
createActions readonly CommentCreateAction[] — —
label* string — —
onCancel (…) => void — —
onCreate (…) => void | Promise<void> — Create a new root comment.
onDiscard* (…) => void — —
onMention (…) => void — Fired once per mention referenced by a posted comment.
placeholder string — —
reference* Element — —