Detailed Profile Card
ProNewThe 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
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
Props
| Prop | Type | Default |
|---|---|---|
| name* | string | — |
| href | stringWhere the full profile lives. The name becomes a link, and a button copies the address. | — |
| image | stringA portrait. Initials are shown without one. | — |
| badge | stringA short tag after the name: a rank or a seniority. | — |
| title | stringThe person's title, e.g. "Partner, Corporate". | — |
| organization | string | — |
| organizationHref | string | — |
string | — | |
| phone | string | — |
| location | string | — |
| bio | stringA 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. | [] |
| footnote | React.ReactNodeA line under the expanded sections, e.g. a source link and when the record was verified. | — |
| actions | React.ReactNodeA menu or buttons in the top corner. | — |
| selected | booleanAdds a checkbox and marks the card when it is selected. Pass it with `onSelectedChange`. | — |
| onSelectedChange | (selected: boolean) => void | — |
| defaultExpanded | booleanStart with the card expanded. | false |
| className | string | — |
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.