opensourceui
GitHubTwitter/X
  1. Home
  2. Components
  3. Linkedin
  4. Linked In Profile
Back to Linkedin

Components / Linkedin

Linked In Profile

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

LinkedIn profile card with cover photo, avatar, headline, stats, bio, and Connect/Message buttons. Professional social, component-sized.

Preview

LinkedIn cover image
Profile avatar

Bidyut Kundu

Software Developer at OpenSourceUI

West Bengal, India · 500+ connections

Passionate about open-source, minimal UI, and developer tools.

42

Posts

500+

Connections

2.5yr

Experience

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

  4. 4

    Import and render:

    Example

    import { LinkedInProfileCard } from "@/components/linkedin/linked-in-profile-card";

    <LinkedInProfileCard />

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/linkedin/linked-in-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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
"use client";
 
import {
forwardRef,
type ComponentPropsWithoutRef,
type ReactNode,
} from "react";
import Image from "next/image";
 
import { cn } from "@/lib/cn";
 
export type LinkedInProfileCardProps = Readonly<
{
name?: string;
headline?: string;
location?: string;
connections?: string | number;
bio?: string;
posts?: string | number;
experience?: string;
coverImage?: string;
avatar?: string;
coverImageAlt?: string;
avatarAlt?: string;
connectLabel?: string;
messageLabel?: string;
connectButton?: ReactNode;
messageButton?: ReactNode;
onConnect?: () => void;
onMessage?: () => void;
} & ComponentPropsWithoutRef<"div">
>;
 
// Production-ready Linked In Profile component — styled with Tailwind CSS.
export const LinkedInProfileCard = forwardRef<
HTMLDivElement,
LinkedInProfileCardProps
>(
(
{
className,
name = "Bidyut Kundu",
headline = "Software Developer at OpenSourceUI",
location = "West Bengal, India",
connections = "500+",
bio = "Passionate about open-source, minimal UI, and developer tools.",
posts = 42,
experience = "2.5yr",
coverImage = "/wallpaper-15.png",
avatar = "/profile-picture.png",
coverImageAlt = "LinkedIn cover image",
avatarAlt = "Profile avatar",
connectLabel = "Connect",
messageLabel = "Message",
connectButton,
messageButton,
onConnect,
onMessage,
...props
},
ref,
) => {
return (
<div
ref={ref}
data-slot="linkedin-profile-card"
className={cn(
"w-72 overflow-hidden rounded-xl border border-neutral-100 bg-white font-sans shadow-lg",
className,
)}
{...props}
>
{/* Cover */}
<div className="relative h-20">
<Image
src={coverImage}
alt={coverImageAlt}
fill
className="object-cover"
sizes="288px"
/>
 
{/* Avatar */}
<div className="absolute -bottom-8 left-4 flex h-16 w-16 items-center justify-center rounded-full border-4 border-white bg-neutral-800 shadow">
<Image
src={avatar}
alt={avatarAlt}
width={28}
height={28}
className="w-7"
sizes="28px"
/>
</div>
</div>
 
<div className="px-4 pt-10 pb-4">
{/* Name */}
<h4 title={name} className="mt-2 font-bold text-neutral-900">
{name}
</h4>
 
{/* Headline */}
<p title={headline} className="text-xs text-neutral-600">
{headline}
</p>
 
{/* Location + connections */}
<p className="mt-0.5 text-xs text-neutral-400">
{location} · {connections} connections
</p>
 
{/* Bio */}
<p
title={bio}
className="mt-2 text-xs leading-relaxed text-neutral-600"
>
{bio}
</p>
 
<div className="mt-3 flex gap-2">
{connectButton ?? (
<button
type="button"
aria-label={`Connect with ${name}`}
onClick={onConnect}
className="flex-1 cursor-pointer rounded-full bg-neutral-800 py-1.5 text-xs font-semibold text-white transition-colors hover:bg-black"
>
{connectLabel}
</button>
)}
 
{messageButton ?? (
<button
type="button"
aria-label={`Message ${name}`}
onClick={onMessage}
className="flex-1 cursor-pointer rounded-full border border-neutral-200 py-1.5 text-xs font-medium text-neutral-600 transition-colors hover:bg-neutral-50"
>
{messageLabel}
</button>
)}
</div>
</div>
 
{/* Stats */}
<div className="flex justify-around border-t border-neutral-100 px-4 py-3 text-center">
<div>
<p className="text-sm font-bold text-neutral-900">{posts}</p>
<p className="text-[10px] tracking-wide text-neutral-400 uppercase">
Posts
</p>
</div>
 
<div>
<p className="text-sm font-bold text-neutral-900">{connections}</p>
<p className="text-[10px] tracking-wide text-neutral-400 uppercase">
Connections
</p>
</div>
 
<div>
<p className="text-sm font-bold text-neutral-900">{experience}</p>
<p className="text-[10px] tracking-wide text-neutral-400 uppercase">
Experience
</p>
</div>
</div>
</div>
);
},
);
 
LinkedInProfileCard.displayName = "LinkedInProfileCard";
PreviousNext

On this

page

Jump to a section on this page.

  • lib/cn.ts
  • components/linkedin/linked-in-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.