# Team Roster

A grid of team cards with a full-bleed portrait on the front that turn over on click, tap or hover to show each person's role, location, a short bio and their links.

- Page and source: https://uibrik.com/components/team-roster
- Install (Pro, needs a license key, see https://uibrik.com/docs/pro): `npx shadcn@latest add @uibrik-pro/team-roster`
- Packages: none beyond React
- Import: `import { TeamRoster } from "@/components/uibrik/team-roster/team-roster"`

Where to use the Team Roster React component:

- **About pages**: Faces up front and the details a turn away keep a team section calm while still saying who does what.
- **Careers pages**: Showing the people a candidate would work with, with their links one tap away, makes a role feel real. Pairs with [Contributor Grid](https://uibrik.com/components/contributor-grid).
- **Speaker and host lists**: A portrait grid that turns over to a bio suits events, podcasts and conferences that introduce their people. Pairs with [Testimonial Wall](https://uibrik.com/components/testimonial-wall).

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| trigger | `"click" \| "hover"` | `"click"` | What turns a card over. Click also covers tap and keyboard; hover falls back to tap on touch screens. |
| exclusive | `boolean` | `true` | Turning one card over turns the others back. |
| showRole | `boolean` | `false` | Show the role under the name on the front too. |
| aspect | `"portrait" \| "tall" \| "square"` | `"portrait"` | Shape of each card. |
| minWidth | `number` | `200` | Narrowest a card gets before the grid drops a column. |
| radius | `number` | `24` | Corner radius. |
| duration | `number` | `0.55` | Time for a card to turn over. |
| members | `{ id?: string; name: string; role: string; src: string; location?: string; bio?: string; links?: { type: "x" \| "github" \| "linkedin" \| "email" \| "website"; href: string }[] }[]` | `SAMPLE_MEMBERS` | People in order. src is a portrait photo for the front; ids default to the name. |
| flipped / defaultFlipped | `string[]` | `[]` | Ids of the cards turned over, controlled or uncontrolled. |
| onFlippedChange | `(ids: string[]) => void` |  | Called when a card turns over or back. |
| className | `string` |  | Classes for the grid. |
