• DocsDocs
  • PricingPricing
Sign in
Get started
Sign in
Get started
    • Ready-made features
      • Comments
        Comments

        Contextual commenting

      • Multiplayer
        Multiplayer

        Realtime collaboration

      • AI Agents
        AI Agents

        Collaborative AI agents

      • Notifications
        Notifications

        Smart alerts for your app

    • Platform
      • Collaboration Infrastructure
        Collaboration Infrastructure

        The engine behind multiplayer apps

      • DevTools
        DevTools

        Browser extension

    • Tools
      • Examples

        Gallery of open source examples

      • Showcase

        Gallery of collaborative experiences

      • Next.js Starter Kit

        Kickstart your Next.js collaborative app

      • Tutorial

        Step-by-step interactive tutorial

      • Guides

        How-to guides and tutorial

      • Figma UI Kit

        Liveblocks Collaboration Kit

    • Company
      • Blog

        The latest from Liveblocks

      • Customers

        The teams Liveblocks empowers

      • Changelog

        Weekly product updates

      • Security

        Our approach to security

      • About

        The story and team behind Liveblocks

  • Docs
  • Pricing
  • Ready-made features
    • Comments
    • Multiplayer
    • AI Agents
    • Notifications
    Platform
    • Collaboration Infrastructure
    • DevTools
    Solutions
    • People platforms
    • Sales tools
    • Startups
    Use cases
    • Multiplayer forms
    • Multiplayer text editor
    • Multiplayer creative tools
    • Multiplayer whiteboard
    • Comments
    • Sharing and permissions
    • Document browsing
  • Resources
    • Documentation
    • Examples
    • Showcase
    • React components
    • Next.js Starter Kit
    • Tutorial
    • Guides
    • Release notes
    Technologies
    • Next.js
    • React
    • JavaScript
    • Redux
    • Zustand
    • Yjs
    • Tiptap
    • BlockNote
    • Slate
    • Lexical
    • Quill
    • Monaco
    • CodeMirror
  • Company
    • Pricing
    • Blog
    • Customers
    • Changelog
    • About
    • Contact us
    • Careers
    • Terms of service
    • Privacy policy
    • DPA
    • Security
    • Trust center
    • Subprocessors
  • HomepageSystem status
    • Github
    • Discord
    • X
    • LinkedIn
    • YouTube
    © 2026 Liveblocks Inc.
Blog/Updates

New React components for adding realtime presence and contextual commenting to your app

Introducing a new set of ready-made React components, designed to help you start integrating realtime collaboration and commenting into your product.

, on March 10th
New React components for adding realtime presence and contextual commenting to your app
March 10th·5 min read
Share article
Product updatescollaborationcomponents

Ready to get started?

Join thousands of companies using Liveblocks ready‑made collaborative features to drive growth in their products.

Get started for free

Related blog posts

  • Open sourcing the Liveblocks sync engine and dev server

    Open sourcing the Liveblocks sync engine and dev server

    Picture of Matias Piipari
    Picture of Vincent Driessen
    February 18th
    Updates
  • What's new in Liveblocks: January 2026

    What's new in Liveblocks: January 2026

    Picture of Chris Nicholas
    February 5th
    Updates
  • What's new in Liveblocks: November 2025

    What's new in Liveblocks: November 2025

    Picture of Chris Nicholas
    December 9th, 2025
    Updates

Today we're introducing a new set of ready-made React components, designed to help you start integrating realtime collaboration into your product.

  • <AvatarStack />: A realtime list of avatars representing connected users.
  • <Cursors />: A set of realtime cursors for other users in the room.
  • <Cursor />: A single customizable cursor component.
  • <CommentPin />: An avatar pin useful for toggling pop-up threads.
  • <FloatingComposer />: A pop-up composer for creating threads.
  • <FloatingThread />: A pop-up comment thread.

Additionally, we've written a new set of Next.js get started guides to help you use them in various scenarios.

  • Draggable comments: Add a 2D canvas of draggable comments.
  • Table comments: Add pop-up comments to your AG Grid or HTML table.
  • Presence: Add live cursors and avatar stacks to your product.

Components

<AvatarStack />

Displays an overlapping stack of avatars representing users currently present in the room. It updates in realtime as users connect and disconnect.

import { AvatarStack } from "@liveblocks/react-ui";
function Component() { return ( <AvatarStack max={4} size={48} /> );}

Features

  • Pop-up username when hovering over an avatar.
  • Define how many avatars should be shown before grouping the rest.
  • Optionally add offline users to the stack, such as those previously connected.

Learn more in our documentation: AvatarStack.

<Cursors />

Displays a realtime multiplayer cursor for every other user connected to the room.

import { Cursors } from "@liveblocks/react-ui";
function Component() { return ( <Cursors> <YourCanvas /> </Cursors> );};

Features

  • Smooth movement using spring interpolation.
  • Cursors positioned relative to their container using percentage coordinates.
  • Avoids performance bottlenecks caused by re-renders and layout thrashing.

Learn more in our documentation: Cursors.

<Cursor />

Displays a styled multiplayer cursor, helpful for building custom realtime cursors with useOthers.

Charlie
import { Cursor } from "@liveblocks/react-ui";
function Component() { return ( <Cursor label="Charlie" color="#e8d930" /> );};

Features

  • Customizable background color and label.
  • Text color is automatically adjusted to contrast with the background color.
  • Has a height and width of 0px making it easy to position accurately.

Learn more in our documentation: Cursor.

<CommentPin />

Displays a comment pin that can be used anywhere in your UI, or as a trigger to open pop-up threads.

import { CommentPin } from "@liveblocks/react-ui";
function Component() { return ( <CommentPin userId="nova-ai" size="48px" corner="bottom-left" /> );};

Features

  • Displays an avatar inside the pin when userId is provided.
  • Define which corner the pin should point to, such as "top-left".
  • Can be used as a trigger for FloatingComposer and FloatingThread.

<FloatingComposer />

Displays a floating thread composer alongside a trigger element, such as a button. Clicking the trigger opens the composer, and clicking outside closes it.

import { FloatingComposer } from "@liveblocks/react-ui";
function Component() { return ( <FloatingComposer side="bottom" align="center" sideOffset={12} alignOffset={0} > <button>Trigger</button> </FloatingComposer> );};

Features

  • Use any React component as a trigger or opt for our pre-built CommentPin.
  • Define positioning, offset, and alignment relative to the trigger.
  • Combine with FloatingThread to display the created thread.

Learn more in our documentation: FloatingComposer.

<FloatingThread />

Displays a floating comment thread alongside a trigger element, such as a button. Clicking the trigger opens the thread, and clicking outside closes it.

import { FloatingThread } from "@liveblocks/react-ui";
function Component() { return ( <FloatingThread thread={thread} side="bottom" align="center" sideOffset={12} alignOffset={0} > <button>Trigger</button> </FloatingThread> );};

Features

  • Use any React component as a trigger or opt for our pre-built CommentPin.
  • Define positioning, offset, and alignment relative to the trigger.
  • Combine with FloatingComposer to display a composer to create a thread.

Learn more in our documentation: FloatingThread.

Use cases

Draggable comments

Using FloatingThread and CommentPin together, you can create a canvas-like UI with draggable comment pins, like in the live demo below.

Loading

Our Next.js Canvas Comments example

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.

function DraggableComments() {  const { threads } = useThreads();
return threads.map((thread) => ( <FloatingThread key={thread.id} thread={thread}> <CommentPin userId={thread.comments[0]?.userId} style={{ position: "absolute", left: thread.metadata.x, top: thread.metadata.y, }} /> </FloatingThread> ));}

Learn how to get started with draggable comments in Next.js.

Table comments

By adding FloatingComposer and FloatingThread to a table you can enable users to leave comments on individual cells.

Loading

Our Next.js Comments AG Grid example

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.

function TableCellComment({ threads, rowId, columnId }) {  const thread = threads.find(    ({ metadata }) => metadata.rowId === rowId && metadata.columnId === columnId  );
if (!thread) { return ( <FloatingComposer metadata={{ rowId, columnId }}> <button>➕ Add comment</button> </FloatingComposer> ); }
return ( <FloatingThread thread={thread}> <img src={thread.comments[0]?.userId} alt="User avatar" /> </FloatingThread> );}

Learn how to get started with commenting in HTML tables and AG Grid.

Presence

Using AvatarStack and Cursors together, you can create real live presence in your product.

Loading

Our Next.js Live Avatars example.

This works by setting up user authentication then simply importing the components, wrapping your main content within Cursors.

function Layout({ children }) {  return (    <div>      <header>        Untitled document        <AvatarStack max={3} size={32} />      </header>      <main>        <Cursors>{children}</Cursors>      </main>    </div>  );}

Learn how to get started with presence in Next.js.

Upgrade

To use the latest features, update your packages with the following command.

$npx liveblocks upgrade

If you were previously on Liveblocks 3.10 or below, make sure to follow our upgrade guides before updating.

Contributors

Contributors include:marcbouchenoirectnicholas

2 authors