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

    Expandable Cards

    Click cards to expand them and show additional information

      Summertime Sadness

      Summertime Sadness

      Lana Del Rey

      Mitran Di Chhatri

      Mitran Di Chhatri

      Babbu Maan

      For Whom The Bell Tolls

      For Whom The Bell Tolls

      Metallica

      Stairway To Heaven

      Stairway To Heaven

      Led Zeppelin

      Toh Phir Aao

      Toh Phir Aao

      Mustafa Zahid

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/expandable-card-demo-standard @aceternity/expandable-card-demo-grid

    Add useOutsideClick hook

    hooks/use-outside-click.ts
    import React, { useEffect } from "react";
     
    export const useOutsideClick = (
      ref: React.RefObject<HTMLDivElement>,
      callback: Function
    ) => {
      useEffect(() => {
        const listener = (event: any) => {
          if (!ref.current || ref.current.contains(event.target)) {
            return;
          }
          callback(event);
        };
     
        document.addEventListener("mousedown", listener);
        document.addEventListener("touchstart", listener);
     
        return () => {
          document.removeEventListener("mousedown", listener);
          document.removeEventListener("touchstart", listener);
        };
      }, [ref, callback]);
    };

    Examples

    Standard

      Summertime Sadness

      Summertime Sadness

      Lana Del Rey

      Mitran Di Chhatri

      Mitran Di Chhatri

      Babbu Maan

      For Whom The Bell Tolls

      For Whom The Bell Tolls

      Metallica

      Stairway To Heaven

      Stairway To Heaven

      Led Zeppelin

      Toh Phir Aao

      Toh Phir Aao

      Mustafa Zahid

    Grid

      Summertime Sadness

      Summertime Sadness

      Lana Del Rey

      Mitran Di Chhatri

      Mitran Di Chhatri

      Babbu Maan

      For Whom The Bell Tolls

      For Whom The Bell Tolls

      Metallica

      Aap Ka Suroor

      Aap Ka Suroor

      Lord Himesh

    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.