Link Preview

Dynamic link previews for your anchor tags

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/link-preview.json"

Install Manually

Install the dependencies

npm
pnpm
bun
yarn
npm install qss

Copy and paste the following code

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).

Credits