--- 
title: Progress Indicator
description: Multi-step wizard/progress indicator
category: components
alias: stepper, wizard, multi step, progress indicator, 🧙‍♂️ 
a1Full: true
group: Data Display

module: NxProgressIndicatorModule
components:
  - name: NxMultiProgressIndicatorComponent
    selector: nx-multi-progress-indicator
    inputs:
      - name: numbered
        desc: "Whether the steps show their number in the bullet. Defaults to true."
        default: input(true, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
      - name: colorScheme
        desc: "Sets the color scheme of the progress indicator. Defaults to 'default'."
        default: input<NxMultiProgressIndicatorColorScheme>('default')
        type: "InputSignal<'default' | 'positive'>"
      - name: layout
        desc: "Sets the layout of the progress indicator. Defaults to 'horizontal' (bar for the current step only, label beside the bullet). 'horizontal-labels-below' bars every step and moves labels below the bullet. 'vertical' stacks steps top to bottom with a bar between each one. 'vertical-no-labels' and 'vertical-no-bars' are 'vertical' without a visible label or bar, respectively. For the compact layout, use `nx-compact-progress-indicator` instead."
        default: input<NxMultiProgressIndicatorLayout>('horizontal')
        type: "InputSignal<'horizontal' | 'horizontal-labels-below' | 'vertical' | 'vertical-no-labels' | 'vertical-no-bars'>"
      - name: currentStep
        desc: "Sets the 1-based index of the active step. Steps before it are marked completed and the step at this index is marked current - both automatically, without setting `completed`/ `current` on every `nx-multi-progress-step` yourself. A step can still override this by setting its own `completed`/`current` input, e.g. to mark an out-of-order step as done."
        default: input<number | undefined>(undefined)
        type: "InputSignal<number | undefined>"
      - name: ariaLabel
        desc: "Sets the accessible name of the list of steps, e.g. 'Order process'. Bind as `aria-label`. Give the list a name through either this or `aria-labelledby` - without one, screen reader users get an unlabelled list of steps."
        default: input<string | null>(null, { alias: 'aria-label' })
        type: "InputSignal<string | null>"
      - name: ariaLabelledBy
        desc: "Names the list of steps after an existing element instead of a literal string, e.g. the heading above it. Bind as `aria-labelledby`. Takes precedence over `aria-label`."
        default: input<string | null>(null, { alias: 'aria-labelledby' })
        type: "InputSignal<string | null>"
      - name: ariaDescribedBy
        desc: "Points the list of steps at an element describing it in more detail, e.g. a hint about what happens after the last step. Bind as `aria-describedby`."
        default: input<string | null>(null, { alias: 'aria-describedby' })
        type: "InputSignal<string | null>"
  - name: NxMultiProgressStepComponent
    selector: nx-multi-progress-step
    inputs:
      - name: completed
        desc: "Marks the step as completed. Set this explicitly to override the value derived from the parent's `currentStep`, e.g. to mark an out-of-order step as done."
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
      - name: current
        desc: "Marks the step as the current step. Set this explicitly to override the value derived from the parent's `currentStep`."
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
      - name: critical
        desc: "Marks the step as critical."
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
  - name: NxProgressIndicatorStepActionComponent
    selector: a[nxProgressIndicatorStepAction], button[nxProgressIndicatorStepAction]
    desc: |
      Put this on a projected `<a>`/`<button>` inside `nx-multi-progress-step` to reflect the
      step's state onto it: until the step is completed the action is neither focusable nor
      activatable, while staying in the accessibility tree so its content is still read.
      
      A `<button>` gets the native `disabled` attribute. `disabled` is not valid on `<a>`, so an
      anchor gets `aria-disabled` + `tabindex='-1'` and a click guard instead. That reliably keeps it
      out of the tab order and unactivatable, but an anchor with an `href` keeps its `link` role and
      `aria-disabled` support on links varies - see `progress-indicator.md` for how to opt out of
      link semantics entirely.
    methods:
      - name: focus
        params: 
        returnType: void
  - name: NxCompactProgressIndicatorComponent
    selector: nx-compact-progress-indicator
    inputs:
      - name: currentStep
        desc: "Sets the 1-based index of the active step, exactly as on `nx-multi-progress-indicator`. Also drives the 'X of Y' counter - without it, the counter falls back to whichever step sets its own `current`."
        default: input<number | undefined>(undefined)
        type: "InputSignal<number | undefined>"
      - name: expandLabel
        desc: "Button label, read after the counter. Defaults to the intl's `expandLabel`."
        default: input<string | null>(null)
        type: "InputSignal<string | null>"
      - name: ariaLabel
        desc: "Sets the accessible name of the list of steps, e.g. 'Order process'. Bind as `aria-label`."
        default: input<string | null>(null, { alias: 'aria-label' })
        type: "InputSignal<string | null>"
      - name: ariaLabelledBy
        desc: "Names the list of steps after an existing element instead of a literal string. Bind as `aria-labelledby`. Takes precedence over `aria-label`."
        default: input<string | null>(null, { alias: 'aria-labelledby' })
        type: "InputSignal<string | null>"
      - name: ariaDescribedBy
        desc: "Points the list of steps at an element describing it in more detail. Bind as `aria-describedby`."
        default: input<string | null>(null, { alias: 'aria-describedby' })
        type: "InputSignal<string | null>"
    methods:
      - name: open
        params: 
        desc: "Opens the panel. No-op when it is already open."
        returnType: void
      - name: close
        params: 
        desc: "Closes the panel. No-op when it is not open."
        returnType: void
      - name: toggle
        params: 
        desc: "Opens the panel if it is closed, closes it otherwise."
        returnType: void
  - name: NxSingleProgressIndicatorComponent
    selector: nx-single-progress-indicator
    inputs:
      - name: value
        desc: "Sets the current value of the progress bar. Defaults to zero. Forwarded to the underlying `nx-progressbar`."
        default: input(0, { transform: numberAttribute })
        type: "InputSignalWithTransform<number, unknown>"
      - name: min
        desc: "The minimum value of the progress bar. Defaults to 0. Forwarded to the underlying `nx-progressbar`."
        default: input(0, { transform: numberAttribute })
        type: "InputSignalWithTransform<number, unknown>"
      - name: max
        desc: "The maximum value of the progress bar. Defaults to 1. Forwarded to the underlying `nx-progressbar`."
        default: input(1, { transform: numberAttribute })
        type: "InputSignalWithTransform<number, unknown>"
      - name: colorScheme
        desc: "Sets the color scheme of the progress bar. Defaults to 'default'. Forwarded to the underlying `nx-progressbar`."
        default: input<NxProgressbarColorScheme>('default')
        type: "InputSignal<NxProgressbarColorScheme>"
      - name: transparentBackground
        desc: "Makes the progress bar's background transparent. Defaults to false. Forwarded to the underlying `nx-progressbar`."
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
      - name: labelEnd
        desc: "Sets a second, right-aligned label. Hidden unless set."
        default: input<string | undefined>(undefined)
        type: "InputSignal<string | undefined>"
      - name: ariaLabel
        desc: "Overrides the `aria-label` of the underlying `nx-progressbar`."
        default: input<string | undefined>(undefined)
        type: "InputSignal<string | undefined>"
      - name: ariaLabelledBy
        desc: "passes to the `aria-labelledby` of the underlying `nx-progressbar`. Defaults to the visible label(s)"
        default: input<string | undefined>(undefined)
        type: "InputSignal<string | undefined>"

---
# Overview
An indicator is a wizard-like workflow that divides content into logical steps. You provide the content and distribute it in different steps. The indicator will ensure to show only the current content and inform the user about the overall progress.
