About/team pages as data: a responsive grid of person cards with Avatar fallback chain, role, optional bio and SocialLinks. Stacks to one column on small screens.
Design intent
TeamGrid renders about/team pages: a responsive card grid where each member gets an avatar (Avatar fallback chain or a composed node), name, role, optional bio and SocialLinks. A member href links their identity block (social links stay valid siblings, never nested), and linkComponent/linkHrefProp keep it router-aware.
npx @slipstream-ui/cli@latest add team-gridAda Lovelace
CTO
Built the first compiler and wrote the first algorithm.
Katherine Johnson
Head of Analytics
Verified the trajectories that carried Apollo 11 to the Moon.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| members | TeamMember[] | — | name, role, bio, href, avatarSrc, avatar, social per person. |
| columns | 2 | 3 | 4 | 3 | Columns at lg and up; always one column on small screens. |
| label | string | 'Team' | Accessible name for the grid region. |
| linkComponent | ElementType | — | Router link element for member hrefs. |
| linkHrefProp | 'href' | 'to' | 'href' | Prop carrying the destination on linkComponent. |
| className | string | — | Additional CSS classes to apply. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't wrap the card in another link
member.href already links the identity block. Wrapping the whole card in an anchor would nest interactive elements.
tsx// Avoid<a href="/team/ada"><TeamGrid members={[ada]} /></a>// Prefer<TeamGrid members={[{ ...ada, href: '/team/ada' }]} />Don't use for non-person collections
TeamGrid is person cards. For articles use ArticleCard; for generic entities use EntityCard.
tsx// Avoid<TeamGrid members={articles} />// Prefer<div className="grid ..."><ArticleCard .../></div>
Accessibility
- Renders role=list with a labelled region and role=listitem per card.
- AvatarImage + AvatarFallback initials cover members without photos.
- member.href links the identity block — social links stay valid siblings, never nested anchors.
Content guidelines
Bios
- Keep bios to 1–2 sentences
- Lead with role-relevant credibility
- No emoji or exclamation marks
Good examples
- Previously led platform at a fintech scale-up.
- 10 years building design systems.
Bad examples
- Passionate team player!!!
- Loves hiking, coffee and spreadsheets
Composition
Compose with Avatar: avatarSrc renders through Avatar internally; member.avatar accepts a fully composed Avatar for custom fallbacks
avatar: <Avatar><AvatarImage src="/a.jpg"/><AvatarFallback>AL</AvatarFallback></Avatar>
Compose with SocialLinks: member.social renders through SocialLinks with per-member landmark labels
social: [{ href: 'https://github.com/ada', label: 'GitHub' }]
Related components: Avatar, SocialLinks, EntityCard, ArticleCard
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.