Team Showcase
ProNewTeam members with photo, role, contacts and social links as a grid, a list or a swipeable slider, with a popup for the full bio.
Installation
pnpm dlx shadcn@latest add @viewport/team-showcase
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
| Prop | Type | Default |
|---|---|---|
| members* | TeamMember[] | — |
| layout | "grid" | "list" | "slider"`grid` wraps into columns, `list` stacks rows with the full bio, `slider` scrolls sideways with arrows and swipe. | "grid" |
| photo | "circle" | "rounded" | "cover"`circle` and `rounded` put the photo above the text; `cover` fills the tile and lays the name over it. | "circle" |
| card | booleanPuts each member on a filled card. | false |
| title | stringHeading above the team. | — |
| grouped | booleanSplits the grid into sections with a heading per `group`. | false |
| filter | booleanShows a chip per `group` that filters the members. | false |
| columns | 2 | 3 | 4Most columns on a wide container. | 4 |
| align | "left" | "center"Text alignment inside a member. | "left" |
| popup | booleanOpens a popup with the large photo, contacts and bio. Members without a bio get no popup. | true |
| className | string | — |
Accessibility
- Members are list items with a heading each; social links are named “Hazel Pannell on LinkedIn”.
- “See info” opens a dialog that traps focus, closes on Escape and returns focus to the member.
- The slider scrolls natively: swipe, arrow keys on the focused track, or the Previous and Next buttons, which disable at the ends.
- Filter chips are toggle buttons and the number of matches is announced. No sliding or zoom under reduced motion.