Skip to content

CommentsLayerProps

type CommentsLayerProps = {
boundary?: Element | null;
currentUser: CommentAuthor;
editor: EditorHandle;
formatTime?: (ms) => string;
store: CommentStore;
};

Defined in: react/src/comments.tsx:264

PropertyTypeDescriptionDefined in
boundary?Element | nullOptional element used to clamp popovers (typically the editor container).react/src/comments.tsx:272
currentUserCommentAuthorWho authors new comments and replies.react/src/comments.tsx:270
editorEditorHandleThe same handle you pass to <PlimEditor>.react/src/comments.tsx:266
formatTime?(ms) => stringOverride the timestamp formatter.react/src/comments.tsx:274
storeCommentStoreThe shared comment store.react/src/comments.tsx:268