Overview
Link Preview provides dynamic link previews that appear on hover. Supports both static images and URL-based previews with customizable dimensions.Usage
API Reference
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
class | string | "" | Custom class applied to the main element. |
linkClass | string | "" | Custom class applied to the link element. |
width | number | 200 | Width of the preview image. |
height | number | 125 | Height of the preview image. |
isStatic | boolean | false | Determines if the preview image is static or a URL preview (set to true for static mode). |
imageSrc | string | "" | The source of the image to display (required if isStatic is true). |
url | string | "" | URL for the link and for generating the preview image (required if isStatic is false). |
Dependencies
- qss
Credits
- Credits to M Atif for porting this component.
- Ported from Aceternity UI’s Link Preview.