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/Website from ./onboarding-website.
import { OnboardingWebsiteScreen } from "@/components/ui/onboarding-website";
export default function Page() {
return (
<OnboardingWebsiteScreen
email={session.user.email}
defaultDomains={[session.user.email.split("@")[1]]}
onContinue={(domains) => api.saveDomains(domains).then(() => router.push("/onboarding/brand"))}
onLogout={signOut}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| defaultDomains | string[] | [] | Domains already known, e.g. from the sign-up email; the first one is the company's own |
| onContinue | (domains: string[]) => void | Called with the cleaned-up domains (no https://, www. or paths) when Continue is pressed | |
| onBack | () => void | Shows Back in the top bar – leave it out on the first step | |
| 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 |
| layout | "inset" \| "flat" | The dashboard picture like the App Shell: main area as a rounded panel on the gray page, or edge to edge. 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 | 1 / 4 | Where this step sits in the flow – one dash per step under the top |
| 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
The step sits centered in the left half; the dashboard starts at the middle and runs off the right edge
Below 900px the step takes the full width and the dashboard fades back behind it
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"