CommentsLayerProps
type CommentsLayerProps = { boundary?: Element | null; currentUser: CommentAuthor; editor: EditorHandle; formatTime?: (ms) => string; store: CommentStore;};Defined in: react/src/comments.tsx:264
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
boundary? | Element | null | Optional element used to clamp popovers (typically the editor container). | react/src/comments.tsx:272 |
currentUser | CommentAuthor | Who authors new comments and replies. | react/src/comments.tsx:270 |
editor | EditorHandle | The same handle you pass to <PlimEditor>. | react/src/comments.tsx:266 |
formatTime? | (ms) => string | Override the timestamp formatter. | react/src/comments.tsx:274 |
store | CommentStore | The shared comment store. | react/src/comments.tsx:268 |