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 Onboarding from ./onboarding.
import { OnboardingScreen } from "@/components/ui/onboarding";
export default function Page() {
return (
<OnboardingScreen
workspace="Acme"
user={{ name: "Alex Morgan" }}
defaultStep={1}
onComplete={(values) => api.finishOnboarding(values)}
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| defaultStep | 1 \| 2 \| 3 \| 4 | 2 | Step shown first; the steps before it count as done |
| defaultInvites | string[] | ["jamie@acme.com"] | Addresses already in the invite field, e.g. from the sign-up form |
| onComplete | (values: OnboardingValues) => void | Called after Create agent (or skipping the last step) with workspace, slug, team size, tools, invites, role and template | |
| onNavigate | (label: string) => void | Called with the label of a sidebar item or a next step (Chat, Integrations, Analytics) | |
| workspace | string | "Acme" | Workspace name in the sidebar, the greeting and the first field |
| user | { name: string; avatar?: string } | { name: "Alex Morgan" } | Account at the bottom of the sidebar; the first name is used in the greeting |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
The greeting and the steps sit in a column left of the step on wide panels and move above it on narrow ones
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as