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/Profile from ./settings-profile.
import { SettingsProfileScreen } from "@/components/ui/settings-profile";
export default function Page() {
return (
<SettingsProfileScreen
profile={{ firstName: "Alex", lastName: "Morgan", email: "alex@acme.com", timezone: "Europe/Vienna", weekStart: "Monday", context: "" }}
onSave={(profile) => saveProfile(profile)}
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| profile | ProfileValues | firstName, lastName, email, role?, timezone, weekStart, context, avatar?, hasPassword? – the sample profile when left out | |
| onSave | (profile: ProfileValues) => void | Called with the whole profile whenever something is saved – text on blur, choices at once | |
| onNavigate | (label: string) => void | Called with the label of a settings page, or "Back to app" | |
| workspace | string | "Acme" | Workspace name, used by the shell |
| loading | boolean | While the profile loads: the picture, fields, choices, personal context and password note as gray shapes in the shape of the real ones | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
In narrow panels each control moves under its label and takes the full width
Dark mode built in, from the App Shell tokens