Displays a floating thread composer alongside a trigger element, such as a
button. Clicking the trigger opens the composer, and clicking outside closes it.
Displays a floating comment thread alongside a trigger element, such as a
button. Clicking the trigger opens the thread, and clicking outside closes it.
This works by taking x and y coordinates for each thread, storing them on
thread metadata, and then using them to position the comment pin. CommentPin
works as the trigger for each FloatingThread.
Each cell is passed a rowId and columnId which is used in thread metadata to
render comments attached the cell using FloatingThread. If a thread isn’t
found for the cell, then FloatingComposer is displayed, allowing the user to
create a new thread with this metadata.
This works by setting up user authentication then simply importing the
components, wrapping your main content within Cursors.
functionLayout({ children }){return(<div><header> Untitled document<AvatarStackmax={3}size={32}/></header><main><Cursors>{children}</Cursors></main></div>);}