Patterns
UserProfileCard
Profile card with avatar, bio, stats, social links, and follow button.
Quick Preview
AJ
Alex Johnson
@alexj
Senior Engineer at DesignUI. Open source contributor and design system enthusiast.
2.4K
Followers
342
Following
18
Projects
Installation
npm install lucide-react
// Copy fromsrc/components/patterns/UserProfileCard.tsx
Examples
Compact variant
SL
Sam Lee
@samlee
Product designer & frontend enthusiast.
84
Posts
1.2K
Likes
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
name* | string | - | Display name |
username | string | - | @handle |
bio | string | - | Short biography text |
avatarInitials | string | - | Fallback avatar initials |
location | string | - | Location string |
website | string | - | Personal website URL |
joinedDate | string | - | Joined date string |
stats | UserStat[] | - | Stats to display (label + value) |
socialLinks | SocialLink[] | - | GitHub/Twitter links |
variant | 'default' | 'compact' | 'default' | Card size variant |
onFollow | () => void | - | Follow button callback |
following | boolean | false | Is currently following |
className | string | - | Additional CSS classes |