Profile Card
ProNewA person as a search result: portrait, role and firm, every way to reach them with copy buttons, and a side rail for focus areas, awards and mentions.
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, a role, a seniority. | — |
| organization | stringThe firm or company, shown under the name. | — |
| organizationHref | string | — |
string | — | |
| phone | string | — |
| location | string | — |
| education | string | — |
| bio | stringA sentence or two. Clamped to two lines. | — |
| links | { label: string; href: string; icon: React.ReactNode }[]Icon links after the name, e.g. a LinkedIn profile. | [] |
| tagsLabel | stringThe heading and chips of the first block in the side rail, e.g. practice areas. | "Focus" |
| tags | string[] | — |
| highlights | { label: string; icon?: React.ReactNode; content?: React.ReactNode }[]Titled blocks under the chips, two to a row, e.g. Awards and Mentions. | [] |
| 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 | — |
| className | string | — |
Accessibility
- An article named after the person; the name is a real heading and link.
- Copy buttons appear on hover and focus, are always shown on touch screens, and announce what was copied.
- The rail moves under the details by the card's own width, not the viewport's.
- Selection is a labelled checkbox and is reflected in the card's border.
- Respects prefers-reduced-motion.