Skip to content
PixiKit

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
NameTypeDefaultDescription
membersTeamInviteMember[]DEFAULT_MEMBERSThe people already on the team, top to bottom.
invitesstring[]DEFAULT_INVITESThe names the scene types into the field.
rolesstring[]DEFAULT_ROLESThe roles a person can have, shortest first.
seatsnumber8How many seats the team has.
titlestring"Team"The name in the top bar.
seatsLabelstring"{used} of {total} seats"The seat counter; {used} and {total} are replaced.
placeholderstring"Add a name"The hint shown in the empty field.
inviteLabelstring"Invite"The text of the invite button.
pendingLabelstring"Pending"The status of a person who has not joined yet.
joinedLabelstring"Joined"The status of a person who has joined.
removeLabelstring"Remove {name}"The hidden label of the remove buttons; {name} is replaced.
roleLabelstring"Role"The hidden label of the role picker and the role chips.
onInvite(names: string[], role: number) => voidNoneCalled when the visitor sends the invites, with the names and the role index.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for a click on replay.
loopbooleantruePlays again from the start layout after the hold.
speednumber1Playback speed multiplier.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related