ShadcnSpace

Caption Overlay Aspect Ratio

Galleries 2

About

A portrait-ratio image card with a dark gradient overlay and a caption title/subtitle, useful for photo galleries and destination lists.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Caption Overlay Aspect Ratio to your project and fits it to your theme.

Code

How Caption Overlay Aspect Ratio is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import CaptionOverlayAspectRatioDemo from "@/components/ui/aspect-ratio-03";

export default function Preview() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <CaptionOverlayAspectRatioDemo />
    </div>
  );
}

More by ShadcnSpace

View all
  • Integration Card

    Integration Card

    2K
  • Stacked Card Carousel

    Stacked Card Carousel

    1.7K
  • Button witn Icon

    Button witn Icon

    1.5K
  • Orbiting Circles with Globe

    Orbiting Circles with Globe

    1.5K
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • Testimonials Marquee

    Testimonials Marquee

    725
  • Range Select Calendar

    Range Select Calendar

    541
  • Apple Card Carousel

    Apple Card Carousel

    529

More in Galleries

View all
  • Gallery Component

    Gallery Component

    48
  • Photo Deck

    Photo Deck

    80
  • Scattered About

    Scattered About

    80
  • Product Hover Showcase

    Product Hover Showcase

    121
  • Morph Gallery

    Morph Gallery

    4
  • Image Gallery

    Image Gallery

    97
  • Editorial Collage Hero

    Editorial Collage Hero

    530
  • About 3

    About 3

    459

Explore more

Part of ShadcnSpace — browse the full library on 21st.dev.