Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Detailed Profile Card

ProNew

The full record of a person in search results: portrait, role, firm and contact beside a rail of profile details and experience, with a bio and up to three sections that open in place.

Installation

pnpm dlx shadcn@latest add @viewport/detailed-profile-card

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
name*string—
hrefstring

Where the full profile lives. The name becomes a link, and a button copies the address.

—
imagestring

A portrait. Initials are shown without one.

—
badgestring

A short tag after the name: a rank or a seniority.

—
titlestring

The person's title, e.g. "Partner, Corporate".

—
organizationstring—
organizationHrefstring—
emailstring—
phonestring—
locationstring—
biostring

A paragraph. Two lines are shown until the card is expanded.

—
links{ label: string; href: string; icon: React.ReactNode }[]

Icon links after the name, e.g. a LinkedIn profile.

[]
details{ label: string; value: React.ReactNode }[]

Label and value rows in the side rail, e.g. Law school, Bar, Languages.

[]
experience{ organization: string; role?: string; period?: string; current?: boolean }[]

Positions held, newest first, listed under the details.

[]
sections{ label: string; icon?: React.ReactNode; content: React.ReactNode }[]

Up to three titled blocks shown when the card is expanded, e.g. Practice focus, Mentions, Awards.

[]
footnoteReact.ReactNode

A line under the expanded sections, e.g. a source link and when the record was verified.

—
actionsReact.ReactNode

A menu or buttons in the top corner.

—
selectedboolean

Adds a checkbox and marks the card when it is selected. Pass it with `onSelectedChange`.

—
onSelectedChange(selected: boolean) => void—
defaultExpandedboolean

Start with the card expanded.

false
classNamestring—

Accessibility

  • “Show more” is a button with aria-expanded that controls the region it opens.
  • The closed region is inert, so Tab and screen readers skip it.
  • Details are a description list; experience is an ordered list with the current role marked.
  • The rail drops under the main column by the card's own width.
  • Opens without the height transition under reduced motion.