Skip to content
synccn

Profile Card

New

Person card with cover, stats and a follow button.

M

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-card

First 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
    string

    Person's name.

  • handle
    string

    Username, e.g.

  • role
    string

    Job title shown after the handle.

  • location
    string

    City or region.

  • bio
    React.ReactNode

    Short description.

  • stats
    { label: string; value: number }[]

    Default []

    Up to three numbers shown in a row.

  • cover
    string

    Default "linear-gradient(120deg, oklch(0.45 0.08 260), oklch(0.3 0.05 300))"

    CSS background for the cover strip.

  • className
    string

    Extra 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

Helpers

npm packages

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