opensourceui
GitHubTwitter/X
  1. Home
  2. Components
  3. Text
  4. Denim Product Editorial
Back to Text

Components / Text

Denim Product Editorial

Free Text React component — DenimProductEditorialCard. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.

Fashion editorial with two square photos, rotated callout labels, and uppercase product description. Lookbook energy for apparel and accessories.

Preview

RECYCLED FABRICS

Denim strap detail

REINFORCED SEAMS

Denim outfit full look

ADJUSTABLE WAIST

THE NEW DENIM CASUAL DRESS HAS BEEN THOUGHTFULLY DESIGNED FOR YOUR COMFORT AND CONSCIENCE. MADE FROM ALL RECYCLED FABRICS WITH AN ADJUSTABLE FIT, THIS IS THE STAPLE FOR YOUR WARDROBE.

Setup

How to use

Free for personal and commercial use. No UI attribution required. Include the MIT copyright notice when copying component source into your project. Read the MIT license.

  1. 1

    Run in your terminal:

    $npm install clsx tailwind-merge lucide-react
  2. 2

    Copy lib/cn.ts below. Skip if you already have cn().

  3. 3

    Copy the code below and create components/text/denim-product-editorial-card.tsx in your project.

  4. 4

    Import and render:

    Example

    import { DenimProductEditorialCard } from "@/components/text/denim-product-editorial-card";

    <DenimProductEditorialCard />

lib/cn.ts

1
2
3
4
5
6
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
 
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}

components/text/denim-product-editorial-card.tsx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import { forwardRef, type ComponentPropsWithoutRef } from "react";
import Image from "next/image";
 
import { cn } from "@/lib/cn";
import { LoopArrow } from "@/icons/annotations/loop-arrow";
 
export type DenimProductEditorialCardProps = Readonly<
{
detailImage?: string;
outfitImage?: string;
description?: string;
} & ComponentPropsWithoutRef<"div">
>;
 
// Production-ready Denim Product Editorial component — styled with Tailwind CSS.
export const DenimProductEditorialCard = forwardRef<
HTMLDivElement,
DenimProductEditorialCardProps
>(
(
{
className,
detailImage = "/wallpaper-2.png",
outfitImage = "/wallpaper-3.png",
description = "THE NEW DENIM CASUAL DRESS HAS BEEN THOUGHTFULLY DESIGNED FOR YOUR COMFORT AND CONSCIENCE. MADE FROM ALL RECYCLED FABRICS WITH AN ADJUSTABLE FIT, THIS IS THE STAPLE FOR YOUR WARDROBE.",
...props
},
ref,
) => (
<div
ref={ref}
data-slot="denim-product-editorial-card"
className={cn(
"w-[24rem] overflow-visible bg-[#f2f2f2] px-12 py-9 font-sans",
className,
)}
{...props}
>
<div className="relative">
<div className="grid grid-cols-2 gap-x-10">
<div className="relative">
<p className="mb-3 font-serif text-[11px] leading-snug text-neutral-900 italic">
RECYCLED FABRICS
</p>
 
<div className="relative aspect-square w-full overflow-hidden bg-neutral-200">
<Image
src={detailImage}
alt="Denim strap detail"
fill
sizes="152px"
className="object-cover"
/>
</div>
 
<div className="pointer-events-none absolute top-26 -left-21 flex w-30 -rotate-90 items-center gap-1.5">
<p className="shrink-0 font-serif text-[11px] leading-none text-neutral-900 italic">
REINFORCED SEAMS
</p>
<div className="flex shrink-0 items-center">
<div className="h-0 w-9 border-t border-dotted border-neutral-900" />
<div
className="size-3.5 shrink-0 rounded-full border border-dotted border-neutral-900"
aria-hidden
/>
</div>
</div>
</div>
 
<div className="relative">
<div className="relative aspect-square w-full overflow-hidden bg-neutral-200">
<Image
src={outfitImage}
alt="Denim outfit full look"
fill
sizes="152px"
className="object-cover"
/>
</div>
 
<p className="mt-3 font-serif text-[11px] leading-none text-neutral-900 italic">
ADJUSTABLE WAIST
</p>
</div>
</div>
 
<LoopArrow
color="#171717"
aria-hidden
className="pointer-events-none absolute top-[6.15rem] left-[7.35rem] z-10 h-[3.35rem] w-25"
/>
</div>
 
<p className="mt-8 font-mono text-[9px] leading-[1.65] tracking-[0.04em] text-neutral-900 uppercase">
{description}
</p>
</div>
),
);
 
DenimProductEditorialCard.displayName = "DenimProductEditorialCard";
PreviousNext

On this

page

Jump to a section on this page.

  • lib/cn.ts
  • components/text/denim-product-editorial-card.tsx

Sponsor spot · demo preview

Logo

Your brand name

Your tagline or category

A short pitch about your product or service goes here. This is a preview of how sponsor cards will look in this sidebar.

Your call to action

This slot is available. Sponsor Opensource UI and reach developers browsing components every day.