Overlays
Link Preview Card
Link Preview Card: A rich preview card that fades and slides in from whichever side it opens on when hovering a linked name, with a brief delay to avoid flicker.
Using Link Preview Card
Link Preview Card 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 |
|---|---|---|---|
side | select | bottom | Options: top, bottom, left, right |
align | select | start | Options: start, center, end |
openDelay | number | 300 | From 0 to 1000; step 50 |
accent | color | #38BDF8 | No additional limit in the metadata. |
Which frameworks are available for Link Preview Card?
Link Preview Card 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 Link Preview Card depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Link Preview Card?
The React source for Link Preview Card includes: native elements (a); attributes and handlers (aria-describedby, aria-expanded, aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Link Preview Card handle reduced motion?
Link Preview Card reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0.1 : 0.22; reduced ? { opacity: 0 } : { opacity: 0, scale: 0.94, x: travel.x, y: travel.y }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.