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/Tone from ./onboarding-tone.
import { OnboardingToneScreen } from "@/components/ui/onboarding-tone";
export default function Page() {
return (
<OnboardingToneScreen
domain={draft.domains[0]}
brand={draft.names[0]}
aliases={draft.names.slice(1)}
onBack={() => router.push("/onboarding/brand")}
onContinue={(values) => api.saveAssistant(values).then(() => router.push("/onboarding/done"))}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| domain | string | "northwind.com" | The website from the first step – the Knowledge table and the suggested handover address (support@…) |
| brand | string | The name from the step before; derived from the domain when left out | |
| aliases | string[] | ["Northwind Co."] | Short forms from the step before – tags on the assistant's card |
| defaultName | string | The assistant's name – "<brand> Assistant" when left out; shown on its card and over its replies | |
| defaultTone | "friendly" \| "neutral" \| "formal" | "neutral" | The tone selected first |
| defaultLength | "short" \| "balanced" \| "detailed" | "balanced" | How long its replies are – the test chat's answer follows it |
| defaultHandover | boolean | true | Hand over to a person when unsure |
| defaultEmail | string | Where it hands over to – support@ the domain when left out | |
| onContinue | (values: { name, tone, length, handover, email }) => void | Called when Continue is pressed; needs a name, and a valid address while handover is on | |
| onBack | () => void | Shows Back in the top bar | |
| layout | "inset" \| "flat" | The dashboard picture like the App Shell. Left out, it follows data-shell="flat" on an ancestor | |
| 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 | 3 / 4 | Where this step sits in the flow |
| email, product, logo, 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
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"