Session setup.
A three-step setup with numeric entry, time preferences and recoverable saves.
A FEW USEFUL DETAILS
Set up a working session.
Workspace details and a preferred time, ready to review.
Sample preferences · drafts stay in this tab
GET STARTED
Source you can customise.
npx shadcn@latest add https://ui.bld8.dev/r/session-setup.jsonInstall into an existing application, or download the complete starter below.
Download the starter, unzip it and run the commands below. Choose Next.js or React + Vite. Both include the same BLD8 packages and editable source. No BLD8 npm installation is needed.
npm install
npm run devNext.js opens on http://localhost:3000; Vite opens on http://127.0.0.1:5173. Use the port printed by the dev server if the default is occupied. Node 22.13+ and React 19 are used. Import SessionSetup from @bld8/blocks in your own composition.
Moving between Next.js and Vite? Keep the UI source and review the application-specific changes.
NOTES TO SELF
A clear starting point.
Workspace details, session preferences and review share the same draft. Step validation focuses the first invalid control; back navigation retains values. Drafts use sessionStorage by default, with an optional storage adapter or page-only mode. Number and time labels support Australia, United States and Germany display formats while time values remain HH:mm. onSave receives an AbortSignal and a stable requestId for retries of the same values. The host owns authentication, idempotency and persistence. This records preferences; it does not create calendar events, resolve DST or reserve availability.
Original BLD8 source uses MIT. Personal and commercial use are allowed; preserve the copyright, licence and applicable third-party notices when sharing source.
Licence and usage Source manifestPublic API
Generated from the same public TypeScript exports as the agent documentation. The host owns the service contracts described above.
SessionSetup
| Prop | Type | Default |
|---|---|---|
disabled | boolean | undefined | false |
initialValues | SessionPreferences | undefined | — |
onSave | ((values: CompleteSessionPreferences, context: SessionSubmitContext) => Promise<void>) | undefined | — |
storage | Pick<Storage, "getItem" | "setItem"> | null | undefinedOmit for sessionStorage. null keeps values in the open page only. | — |
storageKey | string | undefined | 'bld8-session-setup-v1' |
Tables come from the public TypeScript declarations. Related types and function parameters are shown alongside their component. A dash means no default is declared at the public function boundary.