Michael
@michael · Design engineer
Builds component libraries and the docs that explain them.
Los Angeles
2.5k
Followers
312
Following
26
Projects
Installation
$ pnpm dlx shadcn@latest add @synccn/profile-cardFirst time in this project? Connect synccn with one command.
Usage
import { ProfileCard } from "@/components/ui/cards";<ProfileCard name="Michael" handle="@michael" stats={stats} />API reference
Generated from the component's TypeScript types, so it always matches the code.
ProfileCard
Person card with a cover, stats and follow/message actions.
- namerequired
stringPerson's name.
- handle
stringUsername, e.g.
- role
stringJob title shown after the handle.
- location
stringCity or region.
- bio
React.ReactNodeShort description.
- stats
{ label: string; value: number }[]Default
[]Up to three numbers shown in a row.
- cover
stringDefault
"linear-gradient(120deg, oklch(0.45 0.08 260), oklch(0.3 0.05 300))"CSS background for the cover strip.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Components
- Avatar for
Avatar
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
- lucide-react for Check, Heart, MapPin, MessageCircle, Repeat2, Share, Quote
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label, aria-pressed