Team Invite
A team panel taking on new people: names are typed into a field and become chips, a pointer picks a role and sends the invites, and two pending rows slide into the member list while the seat counter rolls and the meter fills. Visitors can add names, pick a role, send invites, change a member role and remove pending rows, with the mouse or the keyboard.
pixikit.com/docs/blocks/illustrations/team-invite
Customize
Seats8
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
20| Name | Type | Default | Description |
|---|---|---|---|
members | TeamInviteMember[] | DEFAULT_MEMBERS | The people already on the team, top to bottom. |
invites | string[] | DEFAULT_INVITES | The names the scene types into the field. |
roles | string[] | DEFAULT_ROLES | The roles a person can have, shortest first. |
seats | number | 8 | How many seats the team has. |
title | string | "Team" | The name in the top bar. |
seatsLabel | string | "{used} of {total} seats" | The seat counter; {used} and {total} are replaced. |
placeholder | string | "Add a name" | The hint shown in the empty field. |
inviteLabel | string | "Invite" | The text of the invite button. |
pendingLabel | string | "Pending" | The status of a person who has not joined yet. |
joinedLabel | string | "Joined" | The status of a person who has joined. |
removeLabel | string | "Remove {name}" | The hidden label of the remove buttons; {name} is replaced. |
roleLabel | string | "Role" | The hidden label of the role picker and the role chips. |
onInvite | (names: string[], role: number) => void | None | Called when the visitor sends the invites, with the names and the role index. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay. |
loop | boolean | true | Plays again from the start layout after the hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |