Link Preview

Dynamic link previews for your anchor tags

API

Prop NameTypeDefaultDescription
classstring""Custom class applied to the main element.
linkClassstring""Custom class applied to the link element.
widthnumber200Width of the preview image.
heightnumber125Height of the preview image.
isStaticbooleanfalseDetermines if the preview image is static or a URL preview (set to true for static mode).
imageSrcstring""The source of the image to display (required if isStatic is true).
urlstring""URL for the link and for generating the preview image (required if isStatic is false).

Component Code

You can copy and paste the following code to create these components:

Credits