Skip to content
Onycx-ui
ESC

Pointer Cue

Show a small View label beside the pointer when it passes over a preview image.

Dependencies
gsap
Size
204 lines
Controls
8 controls

Installation

CLI · shadcn registry

npx shadcn@latest add https://ui.onycx.dev/r/pointer-cue.json

1 · Dependencies

npm install gsap

2 · Copy the source

components/onycx/pointer-cue.tsx

Requires React 19 and Tailwind CSS v4. Copy the source from the pointer-cue.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.

Props

PropTypeDefaultDescription
childrenReactNode—Content with cue targets. Without children a two-card catalog grid renders from items.
selectorstring"[data-cue]"Targets that show the cue (only inside the wrapper). A non-empty data-cue value replaces the label for that target.
label / arrowstring / boolean"View" / trueCue text; arrow appends ↗.
sizenumber64Diameter in px; font is 9/64 of it. Both grow on 1800px+ viewports like the original's widescreen rules.
fill / fillOpacitystring / number"#6d001a" / 0.565Disc colour and its strength (the original #6d001a90).
border / ink / blurstring / string / number"#ffffff40" / "#ffffff" / 81px ring, text colour and backdrop blur in px.
durationnumber0.3gsap.quickTo duration in seconds, power3.out.
itemsPointerCueItem[]—{ name, variant, tagline, index, image, href? } for the default catalog.