Componentdata0.71 KB gzipZero dependencies
TeamGrid
Grid of member cards with initials avatars, roles, optional links and staggered hover-lift entrances.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add team-gridOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { TeamGrid } from "@/components/ui/team-grid"; <TeamGrid members={[{ id: "1", name: "Alice", role: "Lead" }]} />Source code
team-grid.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxteam-grid.tsx62 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface TeamMember { id: string; name: string; role: string; avatarInitials?: string; link?: { label: string; href: string };} export interface TeamGridProps extends React.HTMLAttributes<HTMLElement> { members: TeamMember[]; columns?: 2 | 3 | 4; className?: string;} function initials(name: string): string {Props
| Prop | Type | Description |
|---|---|---|
| members | TeamMember[] | Configures members. (Default: []) |
| columns | 2 | 3 | 4 | Column definitions describing headers, cell keys, and sorting. (Default: 3) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |