opensourceui
GitHubTwitter/X
  1. Home
  2. Components
  3. Profile
  4. Editorial Staff Profile
Back to Profile

Components / Profile

Editorial Staff Profile

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

Numbered editorial roster row with serif name, uppercase role, and a square photo. Built for about pages and team indexes.

Preview

01

Bidyut Kundu

Design editor

Bidyut Kundu

Typography, print systems, and the occasional long-form essay on slow tools.

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/profile/editorial-staff-profile-card.tsx in your project.

  4. 4

    Import and render:

    Example

    import { EditorialStaffProfileCard } from "@/components/profile/editorial-staff-profile-card";

    <EditorialStaffProfileCard index="04" name="Mira Okonkwo" role="Design editor" image="/profile-picture.png" />

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/profile/editorial-staff-profile-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
"use client";
 
import { forwardRef, type ComponentPropsWithoutRef } from "react";
 
import { cn } from "@/lib/cn";
 
export type EditorialStaffProfileCardProps = Readonly<
{
index?: string;
name?: string;
role?: string;
bio?: string;
image?: string;
imageAlt?: string;
} & ComponentPropsWithoutRef<"article">
>;
 
// Editorial staff index — numbered roster row, not another centered avatar card.
export const EditorialStaffProfileCard = forwardRef<
HTMLElement,
EditorialStaffProfileCardProps
>(
(
{
className,
index = "01",
name = "Bidyut Kundu",
role = "Design editor",
bio = "Typography, print systems, and the occasional long-form essay on slow tools.",
image = "/profile-picture.png",
imageAlt,
...props
},
ref,
) => {
const alt = imageAlt ?? name;
 
return (
<article
ref={ref}
data-slot="editorial-staff-profile-card"
className={cn(
"flex w-72 gap-4 border-l-2 border-neutral-900 bg-white py-4 pr-4 pl-5 font-sans",
className,
)}
{...props}
>
<p
aria-hidden
className="w-8 shrink-0 pt-0.5 font-mono text-[11px] leading-none text-neutral-400"
>
{index}
</p>
 
<div className="min-w-0 flex-1">
<div className="flex items-start justify-between gap-3">
<div className="min-w-0">
<h3 className="font-serif text-2xl leading-none tracking-tight text-neutral-950">
{name}
</h3>
<p className="mt-2 text-[10px] font-semibold tracking-[0.16em] text-neutral-500 uppercase">
{role}
</p>
</div>
 
<div className="size-14 shrink-0 overflow-hidden border border-neutral-200 bg-neutral-100">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={image} alt={alt} className="size-full object-cover" />
</div>
</div>
 
<p className="mt-3 text-xs leading-relaxed text-neutral-600">{bio}</p>
</div>
</article>
);
},
);
 
EditorialStaffProfileCard.displayName = "EditorialStaffProfileCard";
PreviousNext

On this

page

Jump to a section on this page.

  • lib/cn.ts
  • components/profile/editorial-staff-profile-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.