Stepper

Native task progress with an ordered list, persistent content slots and cancelable navigation. Use it for a reporting or review workflow; use qds-tabs for independent tabbed sections.

Usage

<script type="module" src="/assets/components/stepper/qds-stepper.js"></script>
<qds-stepper id="report" label="Operating update progress" linear>
  <section slot="step-context"><h2>Reporting context</h2><input aria-label="Report name"></section>
  <section slot="step-review"><h2>Review update</h2><button type="button">Submit locally</button></section>
</qds-stepper>
<script>
  report.steps = [{id: 'context', label: 'Reporting context'}, {id: 'review', label: 'Review update'}];
  // Mark the relevant step complete after application validation, then request navigation.
  report.steps = report.steps.map(step => ({...step, completed: step.id === 'context'}));
  report.goTo('review');
  report.focusPanel();
</script>

API

Events and content

Quilt / PrimeNG Steps replacement

Use the existing native component through the generated Angular wrapper:

<q-qds-stepper variant="steps" [readonly]="true"
  label="Distribution funding progress"
  [steps]="distributionStages" [activeStep]="distribution.stage">
</q-qds-stepper>
distributionStages = [
  { id: 'requested', label: 'Requested' },
  { id: 'submitted', label: 'Submitted' },
  { id: 'approved', label: 'Approved' },
  { id: 'funded', label: 'Funded' },
];
distribution = { stage: 'funded' };

PrimeNG’s model maps to steps; its numeric activeIndex maps to the corresponding immutable activeStep ID. Read-only mode blocks navigation, not selection of a different business record. No PrimeNG runtime or CSS is required.

The layout supports matching Quilt’s numbered tracker. Exact host typography and theme colors are independently configurable: use --qds-stepper-font-size, --qds-stepper-marker-size, --qds-stepper-label-gap, --qds-stepper-connector-color, --qds-stepper-marker-border, --qds-stepper-marker-background, --qds-stepper-current-background, --qds-stepper-text-color, and --qds-stepper-current-color, or the exposed parts. Defaults use existing QDS theme tokens; inactive informational labels retain readable contrast. No existing token values change. Match Quilt’s actual computed font and colors when a pixel-identical host migration is required; the supplied screenshot alone does not specify all of those values.

The adjacent demo includes the Requested → Submitted → Approved → Funded sequence, a programmatic stage selector, and interactive variant/read-only/vertical/RTL controls. The Angular catalog’s Exercise Angular wrapper link exposes the generated variant and readonly inputs as well.

Accessibility

The named navigation contains an ordered list of native buttons; aria-current="step" and visible state text identify progress. This is not a tablist. Tab reaches enabled buttons naturally; Enter/Space activate. Arrows and Home/End optionally move focus without activation, with vertical/RTL direction respected. Disabled/linear-locked buttons are skipped. The current named content region can receive focus through focusPanel(); applications should describe validation errors and overall instructions.

Guidance: W3C multi-page forms, Carbon progress indicator accessibility, PrimeNG Stepper.

Quangular business use

Operations > New update (/#/operations/updates/new) progresses through reporting context, metrics/reviewers and local review/submission using generated stepper inputs/events/methods. Query step identifies the current phase. Earlier data survives step changes and browser Back; reload/navigation resets the report. Missing prior data redirects a deep step to the first incomplete phase. This is a fictional local workflow, not a persistent reporting service.

Portfolio > Companies > Redwood Basin Resources (/#/portfolio/companies/co-redwood) includes Distribution status. Select one of four fictional distribution records to inspect its amount, current funding stage and treasury/reconciliation outcome. The connected tracker uses generated variant, readonly, steps and activeStep bindings. Clicking its steps cannot change a business record. Browser tests exercise the selection and read-only behavior in light and dark themes.

Run npm run verify; use the adjacent test.html for linear/nonlinear, state, keyboard, orientation, content retention and validation examples. Stage evidence is recorded in .agents/docs/generated/p1-delivery-status.md.