Xzero UI
Pro library

Invite peoplePro

Invite teammates with roles, bulk paste validation, a seat meter, and avatars that fly into a pending list.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui-pro/invite-people
Live · keyboard ready

Use this as a starting point and replace the sample data with your own.

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui-pro/invite-people

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { InvitePeople } from "@/components/xzero/blocks/invite-people/invite-people";

export function InviteDialogBody() {
  return <InvitePeople />;
}

API reference

InvitePeople

A workspace invite form. People are picked from a directory or typed and pasted as emails, each gets a role, and a seat meter tracks members, pending invites, and the new selection against the plan limit. Sending, joining, resending, revoking, and upgrading are simulated. Also the default export.

No props.

Keyboard interactions

KeysAction
Arrow Down / Arrow UpMoves through the suggestion list, skipping people already on the team or invited.
EnterAdds the highlighted suggestion, or turns the typed text into a chip.
, / ;Commits the typed text as a chip.
BackspaceIn an empty field, the first press marks the last chip and the second removes it.
EscapeCloses the suggestion list, then clears the typed text.
Arrow Down (role button)Opens the role menu for that chip.
Arrow Up / Down, Home / End, EscapeMove through and close the role menu; Escape returns focus to the role button.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components