Patterns · Pages
Team
TeamPage
Team and roles: members in a table (cards on a phone), a role per person, removal with a confirm that names them, invites by email, pending invites and seat usage.
Web
Live, at a real viewport width. Switch to Phone to see the responsive layout.
Usage
import { TeamPage } from '@nexub/patterns';
<TeamPage
members={members}
roles={[{ id: 'admin', label: 'Admin' }, { id: 'editor', label: 'Editor' }]}
onRoleChange={(memberId, roleId) => setRole(memberId, roleId)}
onRemove={removeMember}
onInvite={({ emails, roleId }) => invite(emails, roleId)}
pendingInvites={invites}
onResendInvite={resend}
onRevokeInvite={revoke}
seats={{ used: 4, total: 5 }}
canManage={me.role === 'admin'}
/>On iOS & Android
This template has no native twin yet. On mobile, compose it from the @nexub/react-native components listed on the React Native page.