185 Pro components and page blocks

Get Pro

Updated

Team Roster

Pro

Preview

Customize

Click
4:5
Min width200px
Radius24px
Duration0.55s

Installation

Pro

Team Roster is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/team-roster

Usage

import { TeamRoster } from "@/components/uibrik/team-roster/team-roster";​<TeamRoster  trigger="click"  exclusive  showRole={false}  aspect="portrait"  minWidth={200}  radius={24}  duration={0.55}  defaultFlipped={[]}  onFlippedChange={(ids) => {}}  // members={[{ name: "…", role: "…", src: "…" }]}  // flipped={["…"]}/>

Where to use Team Roster

  • 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

  • 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

Props

TeamRoster
trigger
Type "click" | "hover"
"click"
What turns a card over. Click also covers tap and keyboard; hover falls back to tap on touch screens.
exclusive
Type boolean
true
Turning one card over turns the others back.
showRole
Type boolean
false
Show the role under the name on the front too.
aspect
Type "portrait" | "tall" | "square"
"portrait"
Shape of each card.
minWidth
Type number
200
Narrowest a card gets before the grid drops a column.
radius
Type number
24
Corner radius.
duration
Type number
0.55
Time for a card to turn over.
members
Type { 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
Type string[]
[]
Ids of the cards turned over, controlled or uncontrolled.
onFlippedChange
Type (ids: string[]) => void
–
Called when a card turns over or back.
className
Type string
–
Classes for the grid.