Skip to content

pastetaste

Pointer Light Grid

SectionsCardsInteraction

A grid of cards whose borders and surfaces light up around the pointer: one shared radial light shown through each cell's border mask.

Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.

Install

Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/pointer-light-grid.tsx.

npx shadcn@latest add https://pastetaste.com/r/pointer-light-grid.json

Prompt

Install the pastetaste component "Pointer Light Grid" (pointer-light-grid) into this Next.js project and use it.

What it is: A grid of cards whose borders and surfaces light up around the pointer: one shared radial light shown through each cell's border mask.

Before you place it, ask me (one short message, in my language; "skip" = sensible default): which page and section it goes in, my brand colour (hex), the text, labels or images it should show, and whether I want my logo or my own copy in the demo content. Then:

Steps:
1. If the project has no components.json, run: npx shadcn@latest init -y -d. Then run: npx shadcn@latest add https://pastetaste.com/r/pointer-light-grid.json
   (it writes components/pastetaste/pointer-light-grid.tsx; install any npm packages it reports).
2. Import it: import { PointerLightGrid } from "@/components/pastetaste/pointer-light-grid" (check the file for the exact named export).
3. Put it where it fits on the page I name, keep the rest of the page untouched, and pass props for my colours instead of editing the installed file.
4. It does not depend on Tailwind; colours come from CSS variables (--pt-*) or props.
5. It supports prefers-reduced-motion with a still state; do not remove it.

Props (all optional unless the type has no default):
- children: ReactNode — One child per cell.
- cols: number = 3 — Columns.
- collapseBelow: number = 720 — Viewport width in px below which it becomes one column.
- gap: number = 12 — Gap in px.
- radius: number = 18 — Cell radius in px.
- size: number = 360 — Light reach in px.
- color: string = var(--pt-accent, #2e63ff) — Light colour (any CSS colour).
- border: string = var(--pt-grid-line, rgba(255,255,255,0.08)) — Resting border colour.
- cellClassName: string — Class on every cell.
- className: string — Extra classes on the root.
- style: CSSProperties — Inline style overrides.

Live preview: https://pastetaste.com/c/pointer-light-grid
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.

Props 11

PropTypeDefaultDescription
childrenReactNode-One child per cell.
colsnumber3Columns.
collapseBelownumber720Viewport width in px below which it becomes one column.
gapnumber12Gap in px.
radiusnumber18Cell radius in px.
sizenumber360Light reach in px.
colorstringvar(--pt-accent, #2e63ff)Light colour (any CSS colour).
borderstringvar(--pt-grid-line, rgba(255,255,255,0.08))Resting border colour.
cellClassNamestring-Class on every cell.
classNamestring-Extra classes on the root.
styleCSSProperties-Inline style overrides.
View all →