Skip to main content

User Management

A full user management page — list users, invite new ones, change roles, and deactivate accounts. Built for tenant-admin and super-admin panels.

When to use this recipe​

Use this inside your Settings or Admin section for any page where an administrator needs to manage who has access. Works for both tenant-scoped and platform-wide user management.

Components used​

Layout · Header · DataTable · Badge · Modal · Input · Select · Button

Preview · User Management

Code​

<div class="page-content">
<div class="page-header">
<div>
<h1>Users</h1>
<p>24 members · 3 pending invitations</p>
</div>
<button class="small">+ Invite user</button>
</div>

<div class="hstack" style="margin-bottom:1rem;gap:0.75rem">
<input type="search" placeholder="Search by name or email..." style="max-width:240px" />
<select>
<option>All roles</option>
<option>Admin</option>
<option>Member</option>
<option>Viewer</option>
</select>
<select>
<option>All status</option>
<option>Active</option>
<option>Pending</option>
<option>Inactive</option>
</select>
</div>

<div class="card table">
<table>
<thead>
<tr>
<th>User</th>
<th>Role</th>
<th>Status</th>
<th>Last active</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Jane Doe<br/><small>jane@acme.com</small></td>
<td><span class="badge accent">Admin</span></td>
<td><span class="badge success">Active</span></td>
<td>Just now</td>
<td><button class="ghost small">Edit</button></td>
</tr>
</tbody>
</table>
</div>
</div>