Skip to content

Custom Cursor

A dot and trailing ring that follow the pointer, grow over links and buttons, and show a text label over elements with data-cursor. Page-wide or scoped to a container.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/custom-cursor
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

Blend

Page-wide cursor with blend and hideNativeCursor: it inverts whatever sits underneath, so it stays visible over type and images alike.

Labels

Give each row its own verb with data-cursor (Read, Watch, Listen) so the cursor says what a click will do.

API Reference

Used in