Skip to content

CommentEditor

API reference and demos for CommentEditor.

Source

import { CommentEditor } 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
aria-describedby string — —
autoFocus boolean — —
className string — —
data-testid string — —
disabled boolean — —
mentionables* CommentMentionable[] — People/agents offered in the @ -mention popover.
onCancel (…) => void — Escape while the popover is closed.
onChange* (…) => void — Called with the next value on edit or mention insertion.
onMentionSelect (…) => void — Fired when a mention is inserted via the popover.
onSubmit (…) => void — Enter (without Shift) while the popover is closed.
placeholder string — —
value* string — Controlled value.
vocabulary CommentVocabulary — —