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/Brand from ./onboarding-brand.
import { OnboardingBrandScreen } from "@/components/ui/onboarding-brand";
export default function Page() {
return (
<OnboardingBrandScreen
domain={draft.domains[0]}
email={session.user.email}
onBack={() => router.push("/onboarding/website")}
onContinue={(names) => api.saveNames(names).then(() => router.push("/onboarding/tone"))}
onLogout={signOut}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| domain | string | "northwind.com" | The website from the step before – suggests the first name (northwind.com → Northwind) |
| defaultNames | string[] | Names already known; replaces the suggestion. The first one is the name the assistant uses | |
| onContinue | (names: string[]) => void | Called with the names, the one the assistant uses first, when Continue is pressed | |
| onBack | () => void | Shows Back in the top bar | |
| onLogout | () => void | Called by Log out | |
| string | "alex@northwind.com" | The signed-in account, top right | |
| product | string | "Lumen" | Your product's name, for the logo label and the footer |
| logo | ReactNode | Your logo, top left – the product mark when left out | |
| 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 | 2 / 4 | Where this step sits in the flow |
| autoType | string | Types this into the field once on load, for demos and recordings; stops when someone types | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height
Same layout as Onboarding / Website, so moving between the steps nothing jumps
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"