Rendyn

Component library

189 components

Product blocks

Cursor

Kibo Cursor composes a pointer, name and optional short message.

Interactive exampleReact Tailwind CSS

Practical React example

Show a labelled remote collaborator pointer when a collaboration layer supplies its position.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/cursor/index.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Show a labelled remote collaborator pointer when a collaboration layer supplies its position

// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";

import {
  Cursor,
  CursorBody,
  CursorMessage,
  CursorName,
  CursorPointer,
} from "@/components/kibo-ui/cursor";

const Example = () => (
  <>
    <Cursor className="absolute top-24 left-24">
      <CursorPointer className="text-emerald-500" />
      <CursorBody className="bg-emerald-50 text-emerald-700">
        <CursorName>@haydenbleasel</CursorName>
        <CursorMessage>Can we adjust the color?</CursorMessage>
      </CursorBody>
    </Cursor>
    <Cursor className="absolute top-48 right-32">
      <CursorPointer className="text-rose-500" />
      <CursorBody className="bg-rose-50 text-rose-700">
        <CursorName>@leerob</CursorName>
        <CursorMessage>One more thing...</CursorMessage>
      </CursorBody>
    </Cursor>
    <Cursor className="absolute bottom-24 left-48">
      <CursorPointer className="text-sky-500" />
      <CursorBody className="bg-sky-50 text-sky-700">
        <CursorName>@shadcn</CursorName>
        <CursorMessage>Another new component?!!</CursorMessage>
      </CursorBody>
    </Cursor>
  </>
);

export default Example;

Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.

Keep presence identity and position updates in your collaboration layer. Bound the rendered pointer to the workspace coordinate system rather than assuming page coordinates match it.

Customization

children / className / style
Cursor and its subcomponents accept native element props. Position and update the wrapper from your collaboration layer; the component does not supply presence transport.

Integration notes

  • The component does not establish a real-time connection or authenticate collaborators.
  • Do not let decorative remote cursors intercept local clicks or conceal important content.

Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP