TeamCard

A team in a card. The avatar stack fans open on hover and the member list unfolds in place. Cards.

Open playground

Design systems

Owns the components, tokens and motion language.

+2
6 members

About

TeamCard is a React component in the Cards category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { TeamCard } from "@ashutoshswamy/smoui" and set name, members, max among its 4 props.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { TeamCard } from "@ashutoshswamy/smoui";

<TeamCard name="Design systems" members={[{ id: "1", name: "Mara Okafor", role: "Lead" }]} onInvite={invite} />

Props 4

name / description

Team name and a line about it.

string
members

The people.

{ id; name; role?; avatar? }[]
max

Avatars in the stack before +N. Default 4.

number
onInvite

Shows an Invite button when given.

() => void