Cards
Cursor drift link preview
Cursor drift link preview: A link preview panel that leans toward wherever the pointer sits on the link, trailing it on a soft spring.
Using Cursor drift link preview
Cursor drift link preview uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
driftAxis | select | both | Options: both, horizontal, vertical, none |
driftAmount | number | 18 | From 0 to 48; step 2 |
stiffness | number | 200 | From 60 to 400; step 10 |
accent | color | #FF6A1F | No additional limit in the metadata. |
Which frameworks are available for Cursor drift link preview?
Cursor drift link preview is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Cursor drift link preview depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.
What accessibility details are visible in Cursor drift link preview?
The React source for Cursor drift link preview includes: native elements (a); attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Cursor drift link preview handle reduced motion?
Cursor drift link preview reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduceMotion ? 0.12 : 0.22; reduceMotion ? { opacity: 0 } : { opacity: 0, scale: 0.92 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.