ValyroUI Русская версия

Team Members

Team members: roles, email invites, pending invitations, seat count. Pro · Work and teams › Team and documents

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add team-members
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { TeamMembers } from 'valyro-ui-pro';

Props

PropTypeDefault
membersTeamMember[]Controlled members; use with onMembersChange.
defaultMembersTeamMember[]Initial members when uncontrolled.
onMembersChange(members: TeamMember[]) => voidCalled with the new members when it changes.
invitesTeamInvite[]Controlled invites; use with onInvitesChange.
defaultInvitesTeamInvite[]Initial invites when uncontrolled.
onInvitesChange(invites: TeamInvite[]) => voidCalled with the new invites when it changes.
roles *TeamRole[]Roles a member can have, in order.
defaultInviteRolestringRole preselected for new invites. Defaults to the last role.
seatsnumber | nullSeats on the plan; omit for unlimited. Members and pending invites both take a seat.
currentUserIdstringId of the signed-in member: their own role and removal are locked.
allowedDomainsstring[]Only addresses on these domains can be invited (subdomains included).
onInvite(emails: string[], role: string) => unknownSends invitations. May return a promise; a rejection keeps the addresses and shows the error.
onRoleChange(member: TeamMember, role: string) => voidCalled when a member's role is changed in their row, with the member (old role) and the new role value.
onStatusChange(member: TeamMember, status: 'active' | 'suspended') => voidCalled on Suspend or Reactivate in a member's actions menu, with the member and their new status.
onRemove(member: TeamMember) => unknownMay return a promise; the confirmation waits for it.
onResend(invite: TeamInvite) => unknownCalled on Resend for a pending invite. May return a promise; a rejection shows its error on the row.
onRevoke(invite: TeamInvite) => unknownCalled on Revoke for a pending invite. May return a promise; the invite leaves the list once it resolves.
onUpgrade() => voidShows an "Add seats" button next to the meter.
titleReactNodePanel heading; falls back to labels.title ("Members").
descriptionReactNodeText under the heading; falls back to labels.description.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<TeamMembersLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

  • Org Chart — Org chart: zoomable, pannable tree with search and collapsible branches
  • Activity Feed — Activity feed
  • Rich Text Editor — Text editor: Markdown shortcuts, slash commands, mentions, links and images
  • Calendar View — Event calendar
  • Scheduler — Scheduler: day, week, month and resource timeline, drag and drop, recurrence
  • Kanban Board — Task board
  • Gantt Chart — Gantt charts with dependencies and drag to reschedule
  • Booking Slots — Meeting booking: calendar, slots in the guest’s time zone, form and confirmation
  • CRM Pipeline — Deal pipeline: stages, amounts and probabilities, drag between stages
  • Approval Flow — Multi-stage approvals: sequential and parallel stages, decisions with reasons, history
  • Goal Tracker — OKRs: objectives and key results, statuses, confidence, check-ins with history
  • Onboarding Checklist — Onboarding checklist: progress, hints with CTAs, dismissal and celebration

Previous: Course Path Navigator · Next: Org Chart · All Work and teams