Skip to content

Stepper

In review
Live · web

Horizontal: advance / retreat, watch the connectors fill

  1. Workspace
  2. 2Provider
  3. 3Model
  4. 4Review

Vertical: step labels + descriptions

  1. Connect repositorydizyx/nockerl linked via the credential store
  2. Pick a branchmain · 3 sessions ahead
  3. 3
    Configure CItypecheck · lint · build · test
  4. 4
    DeployZero-downtime swap

Error: the current step failed (color + icon + text, never color alone)

  1. CredentialsCredential scope confirmed
  2. Allowlist scopegithub-token-dizyx
  3. Push to remote Couldn’t verify, check and retry
  4. 4
    Verify CI

Icons + clickable: done steps show a check; tab / click a completed step to jump back

  1. Account
  2. Billing
  3. Confirm

Compact: dots-only pager indicator (onboarding / carousel)

Horizontal at step 2 of 4 · icons at step 3 · page 3 of 5. The island is live.

// Web: React, consuming @dizyx/nockerl-tokens. (Web is the laggard platform;
// this is the canonical API the published @dizyx/nockerl-react package exposes.)
// The NockerlStepper shows STATUS only. The wizard owns step content + next/back.
import { NockerlStepper } from '@dizyx/nockerl-react';
export function SetupTracker({ step, onJump }: { step: number; onJump: (i: number) => void }) {
return (
<NockerlStepper
current={step}
orientation="horizontal"
onStepClick={onJump} // completed discs become clickable
steps={[
{ label: 'Workspace' },
{ label: 'Provider' },
{ label: 'Model' },
{ label: 'Review' },
]}
/>
);
}
// Vertical, with descriptions and an error stop (color + icon + text, never color alone):
<NockerlStepper
current={2}
errorAt={2}
orientation="vertical"
steps={[
{ label: 'Credentials', description: 'Credential scope confirmed' },
{ label: 'Allowlist scope', description: 'github-token-dizyx' },
{ label: 'Push to remote' },
{ label: 'Verify CI' },
]}
/>
PropTypeDefaultDescription
steps *Step[]
current *numberIndex of the current (active) step.
orientationNockerlStepperOrientation'horizontal'
errorAtnumberIndex that is in an error state (only when it is also the current step).
onStepClick(index: number) => voidJump handler - when set, DONE steps become real buttons.

Also accepts the native <ol> attributes (e.g. onClick, disabled, id, aria-*, data-*), forwarded straight through, plus a forwarded ref.