Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import Settings/Teams from ./settings-members.
import { SettingsMembersScreen } from "@/components/ui/settings-members";
export default function Page() {
return (
<SettingsMembersScreen
me={user.id}
members={members}
teams={teams}
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| members | Member[] | { id, name?, email, role, plan, usage (0–1), invited? } – the sample members when left out | |
| teams | Team[] | { id, name, members: member ids } | |
| me | string | "alex" | Id of the person looking – marked (You) and never removed |
| defaultTab | "Members" \| "Teams" | "Members" | Tab that is open first |
| onNavigate | (label: string) => void | Called with the label of a settings page, or "Back to app" | |
| loading | boolean | While the members load: the numbers, the table's rows and the teams as gray shapes in the shape of the real ones; counts are hidden | |
| empty | boolean | No one yet: the numbers at zero, “No members yet” with an Invite members button in the table's place and “No teams yet” with New team on the Teams tab | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
In narrow panels the numbers stack, search takes its own line and plan and usage give way to name and role
Dark mode built in, from the App Shell tokens