Caption Card

An image card whose caption rises while the image slowly zooms.

no dependenciesMIT · free
Abstract sea artwork

Lumen Lamp

Product launch · 2026. A lamp that follows the light of the sun.
Abstract sea artwork

Coral Coffee

Brand identity · 2025. Warm colors for a slow-roast brand.

Installation

npx shadcn@latest add https://ombakui.com/r/caption-card.json

Usage

import { CaptionCard } from "@/components/caption-card";

<CaptionCard src="/lumen.jpg" alt="Lumen lamp" title="Lumen Lamp" caption="Product launch · 2026" href="/work/lumen" />

Props

PropTypeDefaultDescription
src*string–Image URL.
alt*string–Alternative text for the image.
title*ReactNode–Always-visible title.
captionReactNode–Extra details that slide up on hover or focus.
hrefstring–Optional link; makes the whole card clickable.
classNamestring"aspect-[4/5] w-64"Size classes.