Account

Chrome

Creative

Cursor Border

The edge facing the cursor brightens before it arrives, sweeping round as it circles. A grid of cards feels aware of you.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add cursor-border

Usage

Example
import { CursorBorder } from "@/components/galactrex/cursor-border";

<div className="relative rounded-xl border p-6"><CursorBorder />…</div>

Source

Installs to components/galactrex/cursor-border.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
reachnumber260Distance in px where it starts to answer.
widthnumber1Border width.
colorstring—Any CSS colour; defaults to a theme token.
classNamestring—Extra classes for the outer element.

Variants

  • Grid. One per card in a feature grid.

Accessibility

  • Decorative and off on touch.

Motion and reduced motion

  • Conic gradient angle and opacity from one window listener.