Loading component…
Loading component…
Connected teammates
To reuse this local React demo, copy all files from the Code tab into the same folder, then import TeamInvite from ./team-invite.
import { TeamInvite } from "@/components/ui/team-invite";
export function FeatureCard() {
return (
<article style={{ maxWidth: 420 }}>
<TeamInvite
avatars={[
{ src: "/team/maya.png", name: "Maya" },
{ src: "/team/finn.png", name: "Finn" },
{ src: "/team/lea.png", name: "Lea" },
]}
/>
<h3>Invite your team</h3>
<p>Bring everyone into the same workspace in seconds.</p>
</article>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| avatars | [TeamInviteAvatar, TeamInviteAvatar, TeamInviteAvatar] | Required. The two connected teammates, then the one being invited – each { src, name? } with a square portrait | |
| label | string | Accessible description – by default built from the names | |
| className | string | Extra class on the root, e.g. for width or margins |
Transparent background, so it sits on any light or dark surface
Keeps a 3 : 2 aspect ratio and scales to the width of its container – every size is in container units
Avatars are square portraits shown in white-ringed circles; photos, 3D faces or illustrations all work
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
@import "tailwindcss"; in your main CSS file.