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/Ready from ./onboarding-ready.
import { OnboardingReadyScreen } from "@/components/ui/onboarding-ready";
export default function Page() {
return (
<OnboardingReadyScreen
domains={draft.domains}
brand={draft.names[0]}
name={draft.assistant.name}
tone={draft.assistant.tone}
length={draft.assistant.length}
handoverTo={draft.assistant.handover ? draft.assistant.email : undefined}
onEdit={(step) => router.push(["/onboarding/website", "/onboarding/brand", "/onboarding/tone"][step - 1])}
onFinish={() => api.publishAssistant().then(() => router.push("/"))}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| domains | string[] | ["northwind.com"] | From the first step – the summary and the Knowledge count |
| brand / aliases | string / string[] | From the second step; brand is derived from the first domain when left out | |
| name | string | The assistant's name from the third step – "<brand> Assistant" when left out | |
| tone | "friendly" \| "neutral" \| "formal" | "neutral" | From the third step |
| length | "short" \| "balanced" \| "detailed" | "balanced" | From the third step |
| handoverTo | string | "support@northwind.com" | Who it hands over to; an empty string reads "Nobody – it answers itself" |
| onFinish | () => void | Open dashboard – the end of the flow | |
| onEdit | (step: 1 \| 2 \| 3) => void | Shows Edit on every row; called with the step that row came from | |
| onBack | () => void | Shows Back in the top bar | |
| autoFocus | boolean | false | Focus the first field when the step opens (Ready: Open dashboard) – turn it on in a real flow so the keyboard carries on from step to step |
| step / steps | number | 4 / 4 | Where this step sits in the flow |
| email, product, logo, layout, onLogout, className | As in Onboarding / Website |
Fills its container – give it the full viewport height
The title sits at the same height as in the other steps, so moving between them nothing jumps
Long answers end in an ellipsis instead of wrapping
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"