Components
Dynamic Postal Carousel
Fluid, tactile archival card carousel built on Embla Carousel, Base UI DirectionProvider, and cursor-reactive specular lighting.
Interactive Carousel
Postal Archival Showcase

01
SanctuarySwiss Alps, 2,100m
Alpine Glacial Lake
Atmosphere Rating4.98

02
GeologicalMoab Desert, Utah
Red Rock Arch Canyon
Years Formed180M

03
AtmosphereKauai Rain Ridge
Tropical Mist Sunrise
Canopy Density94%

04
BotanicalArashiyama Temple
Kyoto Moss Garden
Moss Species120+
Installation
bunx shadcn@latest add https://jackui.com/r/dynamic-postal-carousel.jsonnpx shadcn@latest add https://jackui.com/r/dynamic-postal-carousel.jsonpnpm dlx shadcn@latest add https://jackui.com/r/dynamic-postal-carousel.jsonThe CLI will install embla-carousel-react, @base-ui/react, and motion and copy the component to:
components/jackui/carousel/dynamic-postal-carousel.tsxUsage
"use client";
import React from "react";
import DynamicPostalCarousel, {
CarouselCardItem,
} from "@/components/jackui/carousel/dynamic-postal-carousel";
const items: CarouselCardItem[] = [
{
id: "1",
title: "Alpine Glacial Lake",
category: "Sanctuary",
location: "Swiss Alps, 2,100m",
badge: "Featured Collection",
imageUrl: "https://ik.imagekit.io/7k3exsyaa/02_alpine_lake.png",
metric: "4.98",
metricLabel: "Atmosphere Rating",
},
{
id: "2",
title: "Red Rock Arch Canyon",
category: "Geological",
location: "Moab Desert, Utah",
badge: "Archival Record",
imageUrl: "https://ik.imagekit.io/7k3exsyaa/03_red_rock_arch.png",
metric: "180M",
metricLabel: "Years Formed",
},
];
export function CarouselDemo() {
return (
<div className="w-full py-12 flex justify-center bg-zinc-50 dark:bg-zinc-950">
<DynamicPostalCarousel cards={items} />
</div>
);
}Props
DynamicPostalCarouselProps
| Prop | Type | Description |
|---|---|---|
cards | CarouselCardItem[] | Optional. Array of card data objects to render in the carousel. Defaults to curated natural landscapes. |
opts | CarouselOptions | Optional. Embla carousel options object (loop, align, dragFree, etc.). Default is { loop: true, align: "start" }. |
showDots | boolean | Optional. Whether to render animated pagination pill indicators below the slides. Default is true. |
className | string | Optional. Custom class name string applied to the outer wrapper container. |
CarouselCardItem
| Field | Type | Description |
|---|---|---|
id | string | Required. Unique item identifier. |
title | string | Required. Main card title. |
category | string | Required. Uppercase category tag displayed above the title. |
imageUrl | string | Required. High-resolution image URL (e.g. from ImageKit). |
location | string | Optional. Sub-location string shown beside the category tag. |
badge | string | Optional. Top-left stamp pill text. Default is ARCHIVE 0X. |
metric | string | Optional. Highlighted numeric metric or score (e.g. 4.98). |
metricLabel | string | Optional. Subtitle label describing the metric. |