Jack UI logoJackUI
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

Alpine glacial lake surrounded by snowy peaks
01
SanctuarySwiss Alps, 2,100m

Alpine Glacial Lake

Atmosphere Rating4.98
Ancient natural red rock arch at sunrise
02
GeologicalMoab Desert, Utah

Red Rock Arch Canyon

Years Formed180M
Misty sunrise over vibrant tropical forest canopy
03
AtmosphereKauai Rain Ridge

Tropical Mist Sunrise

Canopy Density94%
Traditional Japanese garden with stone lantern and moss carpet
04
BotanicalArashiyama Temple

Kyoto Moss Garden

Moss Species120+

Installation

bunx shadcn@latest add https://jackui.com/r/dynamic-postal-carousel.json
npx shadcn@latest add https://jackui.com/r/dynamic-postal-carousel.json
pnpm dlx shadcn@latest add https://jackui.com/r/dynamic-postal-carousel.json

The CLI will install embla-carousel-react, @base-ui/react, and motion and copy the component to:

components/jackui/carousel/dynamic-postal-carousel.tsx

Usage

"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

PropTypeDescription
cardsCarouselCardItem[]Optional. Array of card data objects to render in the carousel. Defaults to curated natural landscapes.
optsCarouselOptionsOptional. Embla carousel options object (loop, align, dragFree, etc.). Default is { loop: true, align: "start" }.
showDotsbooleanOptional. Whether to render animated pagination pill indicators below the slides. Default is true.
classNamestringOptional. Custom class name string applied to the outer wrapper container.

CarouselCardItem

FieldTypeDescription
idstringRequired. Unique item identifier.
titlestringRequired. Main card title.
categorystringRequired. Uppercase category tag displayed above the title.
imageUrlstringRequired. High-resolution image URL (e.g. from ImageKit).
locationstringOptional. Sub-location string shown beside the category tag.
badgestringOptional. Top-left stamp pill text. Default is ARCHIVE 0X.
metricstringOptional. Highlighted numeric metric or score (e.g. 4.98).
metricLabelstringOptional. Subtitle label describing the metric.