10% off on all-access. Use code SUPER10.
    d :
    h :
    m :
    Logo

    Link Preview

    Dynamic link previews for your anchor tags

    Tailwind CSS and Framer Motion are a great way to build modern websites.

    Visit Aceternity UI for amazing Tailwind and Framer Motion components.

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/link-preview

    Add microlink in next.config file

    next.config.js
    /** @type {import('next').NextConfig} */
    const nextConfig = {
      images: {
        domains: [
          "api.microlink.io", // Microlink Image Preview
        ],
      },
    };
     
    module.exports = nextConfig;

    Static Image Preview Example

    Visit Aceternity UI and for amazing Tailwind and Framer Motion components.

    I listen to this guy and I watch this movie twice a day

    This example shows images being generated from a url AND images being fetched from local folder with a different url for link.

    Props

    Prop NameTypeDefault ValueDescription
    childrenReact.ReactNodeNoneThe content to be displayed inside the link component.
    urlstringNoneThe URL for the link and for generating the preview image if isStatic is false.
    classNamestringNoneAdditional CSS classes to apply to the link component.
    widthnumber200Width of the preview image.
    heightnumber125Height of the preview image.
    qualitynumber50Quality of the preview image.
    layoutstring"fixed"Layout type of the image, affects how the image resizes.
    isStaticbooleanfalseDetermines if the image source is static or dynamically generated from the URL.
    imageSrcstring""Source of the image when isStatic is true. If isStatic is false, this prop should not be used.

    Build websites faster and 10x better than your competitors with

    Aceternity UI Pro

    Next.js 15, Tailwind CSS v4 and Motion for react powered templates

    100+ templates and blocks combined

    Ready to copy paste component blocks, save days of development time

    Aceternity UI Pro Demo - Light Mode
    Logo
    Aceternity UI

    Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

    A product by Aceternity
    Building in public at @mannupaaji

    © 2026 Aceternity Labs LLC. All Rights Reserved.