# Onboarding checklist

A controlled workspace checklist with native step actions, optional details, and accessible required-step progress.

Access: pro. Category: Blocks. Kind: composite.

## When to use

- Use it when a page needs a controlled workspace checklist with native step actions, optional details, and accessible required-step progress.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.

## Alternatives

- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than onboarding checklist.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Onboarding checklist

```sh
npx shadcn@latest add @tidal-pro/onboarding-checklist
```

Stylesheets: `components/ui/tidal.css`, `components/ui/onboarding-checklist.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/onboarding-checklist.css";
import{TidalOnboardingChecklist}from"./components/ui/onboarding-checklist";
export default()=><div className="tidal-scope"><TidalOnboardingChecklist steps={[{id:"example",title:"Demo"}]} title={"Demo"}/></div>;
```

## Structured props

- `TidalOnboardingChecklist.steps: ReadonlyArray<TidalOnboardingChecklistStep>`: Required steps value accepted by this exported component.
- `TidalOnboardingChecklist.title: ReactNode`: Required title value accepted by this exported component.
- `TidalOnboardingChecklist.currentStepId?: string | undefined`: Optional current step id value accepted by this exported component.
- `TidalOnboardingChecklist.defaultExpandedStepId?: string | null | undefined` (default null): Optional default expanded step id value accepted by this exported component.
- `TidalOnboardingChecklist.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalOnboardingChecklist.disabled?: boolean | undefined` (default false): Optional disabled value accepted by this exported component.
- `TidalOnboardingChecklist.emptyMessage?: ReactNode` (default "No setup steps are available."): Optional empty message value accepted by this exported component.
- `TidalOnboardingChecklist.expandedStepId?: string | null | undefined`: Optional expanded step id value accepted by this exported component.
- `TidalOnboardingChecklist.eyebrow?: ReactNode` (default "Onboarding"): Optional eyebrow value accepted by this exported component.
- `TidalOnboardingChecklist.footer?: ReactNode`: Optional footer value accepted by this exported component.
- `TidalOnboardingChecklist.headingLevel?: "h2" | "h3" | "h4" | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalOnboardingChecklist.onExpandedStepChange?: ((stepId: string | null) => void) | undefined`: Callback invoked when the expanded step change interaction is proposed.
- `TidalOnboardingChecklist.onStepAction?: ((step: TidalOnboardingChecklistStep, event: ReactMouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the step action interaction is proposed.
- `TidalOnboardingChecklist.progressLabel?: string | undefined` (default "Onboarding progress"): Optional progress label value accepted by this exported component.
- `TidalOnboardingChecklist.progressProps?: Omit<ProgressHTMLAttributes<HTMLProgressElement>, "value" | "children" | "max"> | undefined`: Optional progress props value accepted by this exported component.
- `TidalOnboardingChecklist.progressRef?: Ref<HTMLProgressElement> | undefined`: Optional progress ref value accepted by this exported component.
- `TidalOnboardingChecklist.stepHeadingLevel?: "h3" | "h4" | "h5" | "h6" | undefined`: Optional step heading level value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/onboarding-checklist.tsx) | [Manifest](https://tidalui.com/examples/onboarding-checklist.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
"use client";

import "./components/ui/tidal.css";

import { useLayoutEffect, useMemo, useRef, useState } from "react";

import { RotateCcw } from "lucide-react";

import { TidalOnboardingChecklist, type TidalOnboardingChecklistStep } from "./components/ui/onboarding-checklist";

import "./components/ui/onboarding-checklist.css";



const tidalExampleStyles = ".tidal-scope .onboarding-checklist-demo,\n.tidal-scope .onboarding-checklist-demo * {\n  box-sizing: border-box;\n}\n\n.tidal-scope .onboarding-checklist-demo {\n  width: 100%;\n  max-width: 1060px;\n  min-width: 0;\n  padding: clamp(12px, 3vw, 34px);\n  color: var(--t-ink);\n  background:\n    linear-gradient(var(--t-border) 1px, transparent 1px),\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\n    var(--t-subtle);\n  background-size: 28px 28px;\n  border: 1px solid var(--t-border);\n  border-radius: 18px;\n  container: onboarding-demo / inline-size;\n}\n\n.tidal-scope .onboarding-checklist-demo-layout,\n.tidal-scope .onboarding-checklist-demo-layout > .tidal-onboarding-checklist {\n  max-width: none;\n  min-width: 0;\n}\n\n.tidal-scope .onboarding-checklist-demo-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 14px;\n  min-width: 0;\n}\n\n.tidal-scope .onboarding-checklist-demo-footer > span {\n  min-width: 0;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .onboarding-checklist-demo-footer > button {\n  gap: 7px;\n  flex: none;\n  padding: 9px 11px;\n  color: var(--t-ink);\n  background: var(--t-surface);\n  border: 1px solid var(--t-border);\n  border-radius: 10px;\n  font: inherit;\n  font-size: 11px;\n  cursor: pointer;\n  transition:\n    background 160ms,\n    transform 140ms var(--t-ease-out);\n}\n\n.tidal-scope .onboarding-checklist-demo-footer > button:hover {\n  background: var(--t-wash);\n}\n\n.tidal-scope .onboarding-checklist-demo-footer > button:active {\n  transform: scale(0.98);\n}\n\n@container onboarding-demo (max-width: 520px) {\n\n  .tidal-scope .onboarding-checklist-demo-footer {\n    align-items: flex-start;\n    flex-direction: column;\n  }\n\n  .tidal-scope .onboarding-checklist-demo-footer > button {\n    width: 100%;\n  }\n}\n\n@media (max-width: 390px) {\n  .tidal-scope .onboarding-checklist-demo {\n    padding: 8px;\n    background-size: 20px 20px;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tidal-scope .onboarding-checklist-demo-footer > button {\n    transition: none;\n    transform: none;\n  }\n}";

const STEP_ORDER = ["name", "review", "board", "invite"] as const;

const LOCAL_RESULTS: Record<(typeof STEP_ORDER)[number], string> = {
  name: "The sample workspace name is prepared locally. Nothing was saved.",
  review: "A weekly review rhythm is selected for this preview only.",
  board: "A sample planning board is now visible in local state.",
  invite:
    "The invite note is previewed locally. No message or account was created.",
};

export function OnboardingChecklistDemo() {
  const [completed, setCompleted] = useState<Set<string>>(
    () => new Set(["name"]),
  );
  const [expandedStepId, setExpandedStepId] = useState<string | null>("review");
  const [notice, setNotice] = useState(
    "One sample step is ready. Changes stay in this preview.",
  );
  const nameActionRef = useRef<HTMLButtonElement>(null);
  const reviewActionRef = useRef<HTMLButtonElement>(null);
  const boardActionRef = useRef<HTMLButtonElement>(null);
  const inviteActionRef = useRef<HTMLButtonElement>(null);
  const resetButtonRef = useRef<HTMLButtonElement>(null);
  const pendingFocusRef = useRef<(typeof STEP_ORDER)[number] | "reset" | null>(
    null,
  );

  useLayoutEffect(() => {
    const pendingFocus = pendingFocusRef.current;
    if (!pendingFocus) return;
    const target =
      pendingFocus === "reset"
        ? resetButtonRef.current
        : {
            name: nameActionRef.current,
            review: reviewActionRef.current,
            board: boardActionRef.current,
            invite: inviteActionRef.current,
          }[pendingFocus];
    target?.focus({ preventScroll: true });
    pendingFocusRef.current = null;
  }, [completed]);

  const currentStepId = STEP_ORDER.find(
    (id) => id !== "invite" && !completed.has(id),
  );
  const steps = useMemo<readonly TidalOnboardingChecklistStep[]>(
    () => [
      {
        id: "name",
        title: "Name the workspace",
        description: "Use a clear label for the local setup preview.",
        details: (
          <p>
            Sample value: <strong>Northstar workspace</strong>. It exists only
            in this rendered demo.
          </p>
        ),
        completed: completed.has("name"),
        actionLabel: completed.has("name") ? "Complete" : "Use sample name",
        actionButtonProps: { disabled: completed.has("name") },
        actionRef: nameActionRef,
      },
      {
        id: "review",
        title: "Choose a review rhythm",
        description: "Set a simple cadence for checking the sample workspace.",
        details: (
          <p>
            Weekly review is the local sample choice. No calendar event or
            reminder is created.
          </p>
        ),
        completed: completed.has("review"),
        actionLabel: completed.has("review") ? "Complete" : "Choose weekly",
        actionButtonProps: { disabled: completed.has("review") },
        actionRef: reviewActionRef,
      },
      {
        id: "board",
        title: "Add a planning board",
        description: "Prepare one local board for priorities and open work.",
        details: (
          <p>
            The board contains three fictional columns: Planned, In progress,
            and Ready for review.
          </p>
        ),
        completed: completed.has("board"),
        actionLabel: completed.has("board") ? "Complete" : "Add sample board",
        actionButtonProps: { disabled: completed.has("board") },
        actionRef: boardActionRef,
      },
      {
        id: "invite",
        title: "Preview an invite note",
        description: "Review wording without contacting anyone.",
        details: (
          <p>
            The preview names a fictional teammate and never sends, stores, or
            logs the message.
          </p>
        ),
        optional: true,
        completed: completed.has("invite"),
        actionLabel: completed.has("invite") ? "Complete" : "Preview note",
        actionButtonProps: { disabled: completed.has("invite") },
        actionRef: inviteActionRef,
      },
    ],
    [completed],
  );

  function completeStep(step: TidalOnboardingChecklistStep) {
    if (step.completed) return;
    const nextCompleted = new Set(completed).add(step.id);
    setCompleted(nextCompleted);
    const nextStep = STEP_ORDER.find((id) => !nextCompleted.has(id));
    pendingFocusRef.current = nextStep ?? "reset";
    setExpandedStepId(nextStep ?? null);
    setNotice(
      LOCAL_RESULTS[step.id as (typeof STEP_ORDER)[number]] ??
        "The sample step changed locally.",
    );
  }

  function resetPreview() {
    pendingFocusRef.current = "review";
    setCompleted(new Set(["name"]));
    setExpandedStepId("review");
    setNotice("Local setup reset. No account or saved workspace was changed.");
  }

  return (
    <section className="onboarding-checklist-demo">
      <div className="onboarding-checklist-demo-layout">
        <TidalOnboardingChecklist
          title="Prepare a useful workspace."
          description="Four concrete setup steps with progress owned entirely by this local preview."
          steps={steps}
          currentStepId={currentStepId}
          expandedStepId={expandedStepId}
          onExpandedStepChange={setExpandedStepId}
          onStepAction={completeStep}
          footer={
            <div className="onboarding-checklist-demo-footer">
              <span role="status" aria-live="polite">
                {notice}
              </span>
              <button ref={resetButtonRef} type="button" onClick={resetPreview}>
                <RotateCcw size={14} aria-hidden="true" />
                Reset local setup
              </button>
            </div>
          }
        />
      </div>
    </section>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <OnboardingChecklistDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order.","Arrow-key behavior follows the exported composite-control implementation."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

title and typed steps are required. Each step has a stable id, title, optional description/details/completed/optional/disabled state, native action and disclosure button attributes/types/refs, and consumer-owned action labels. The section forwards native attributes/ref. Optional currentStepId sets aria-current=step. Native progress reflects completed required steps, preserves consumer aria-valuetext through progressProps, and exposes a progress ref; optional steps never block completion, and a nonempty all-optional list is complete with no required progress meter. Step headings default one level below the root heading while stepHeadingLevel remains an explicit override. Expansion supports controlled expandedStepId or uncontrolled defaultExpandedStepId plus onExpandedStepChange. onStepAction runs after the step button's native onClick unless prevented. Root or step disabled state preserves native disabled controls. Optional eyebrow, heading levels, progress label, empty message, and footer remain consumer-owned. The component makes no account, workspace, request, storage, persistence, or completion side effect claim.
