Skip to content

CommentDraftCard

API reference and demos for CommentDraftCard.

Source

import { CommentDraftCard } 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
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 — —