ProjectsMIT · Free

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.

Step 1 of 3

Workspace details.

A name and a sensible group size.

1–12 people

Sample preferences · drafts stay in this tab

GET STARTED

Source you can customise.

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/session-setup.json

Install 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.

Terminal
npm install
npm run dev

Next.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 manifest

Public API

Generated from the same public TypeScript exports as the agent documentation. The host owns the service contracts described above.

SessionSetup

SessionSetup public properties
PropTypeDefault
disabledboolean | undefinedfalse
initialValuesSessionPreferences | undefined—
onSave((values: CompleteSessionPreferences, context: SessionSubmitContext) => Promise<void>) | undefined—
storagePick<Storage, "getItem" | "setItem"> | null | undefined

Omit for sessionStorage. null keeps values in the open page only.

—
storageKeystring | 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.