Chrome
CreativeCursor 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.
npx @galactrex/ui add cursor-borderUsage
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.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
reach | number | 260 | Distance in px where it starts to answer. |
width | number | 1 | Border width. |
color | string | — | Any CSS colour; defaults to a theme token. |
className | string | — | 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.