DDBS UI
collections

Editorial Collection List

A hairline-ruled collection list beside a tall image: hovering a row shows its thumbnail and swaps the large image.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/editorial-collection-list.json
Dependencies:lucide-react

Usage

editorial-collection-list-example.tsx
import { EditorialCollectionList } from "@dbs/ui";

export default function EditorialCollectionListExample() {
  return (
    <div className="w-full py-6">
      <EditorialCollectionList
        heading={
          <h2>
            <span className="block">/ Limited</span>
            <span className="block pl-[8%]">Collections</span>
          </h2>
        }
        rows={[
          { id: "1", title: "Outerwear", count: 12, href: "#", thumb: "/samples/steps-boxes.jpg", image: "/samples/hero-meadow.jpg", imageAlt: "Outerwear lookbook" },
          { id: "2", title: "Knitwear", count: 9, href: "#", thumb: "/samples/approach-glass.jpg", image: "/samples/hero-wave.jpg", imageAlt: "Knitwear lookbook" },
          { id: "3", title: "Accessories", count: 15, href: "#", thumb: "/samples/torus.png", image: "/samples/panorama-calm.jpg", imageAlt: "Accessories lookbook" },
        ]}
      />
    </div>
  );
}