UsersTable
Paginated users table — GET /admin/users with search + pagination.
Each row is clickable; onRowClick is the navigation hook (the
demo uses it to push to /admin/users/:id).
Search debounces 300ms client-side so a fast typist doesn’t fire one request per keystroke. Page size defaults to 25 (matches the server’s default page size).
Usage
import { UsersTable } from '@rw3iss/auth-client/preact/forms';
<UsersTable organizationId={currentOrgId}/>Props
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
pageSize | number | |
onRowClick | (user: LookupUserRecord) => void | |
className | string | |
organizationId | string | Restrict the list to one organization’s members. Forwarded as `?organization_id=` on the wire. Change this prop to re-run the query — the table resets to page 1 on filter changes. |
appId | string | Restrict the list to one app’s members. Forwarded as `?app_id=`. Server support for this filter is pending; older builds ignore it and return every user. |
filters | ComponentChildren | Optional slot rendered inside the header strip, to the right of the search input and before the count badge. Use it to inline filter dropdowns / actions on the same row as the search. Wraps gracefully on narrow viewports. |