ComponentsNavigation

Stepper

Guides people through a flow in steps. tx-stepper holds the steps together with their panels — in a row or as vertical items; tx-steps only shows where they are, from an array of steps.

Features10APIThemingAccessibility

Basic

tx-step-list holds the numbered steps and tx-step-panels their content; a step and a panel with the same value belong together. [(value)] is the active step. Panel content in an ng-template txStepPanelContent is rendered when the step is first opened and gets activate(value) for the panel's own buttons.

Linear

With linear the steps in the header cannot be picked: people move on only with the buttons of each panel, so a step cannot be skipped.

Vertical

tx-step-item puts a step and its panel together; the step and the panel take the item's value. Panels open under their step with an animation, and a line joins the steps — coloured up to the active one.

Enter the domain you own, without www.

Disabled step

A disabled step cannot be picked and the arrow keys skip it. Panels without a template are plain content and stay rendered.

Your name and photo.

Step template

ng-template txStepContent replaces the step header with your own; it gets the step value, index, active, completed, disabled and activate(value). The separators stay. Inside a tx-step-list give the own button role="tab" and aria-selected.

Account: email and password.

Steps

tx-steps shows where people are in a flow from an items array, without panels. [(activeIndex)] is the current step; by default the steps are readonly, so the page moves them on.

  1. Cart, completed
  2. Shipping
  3. Payment
  4. Confirmation

Clickable steps

With [readonly]="false" every enabled step with a command is a button: a click makes it current and runs the command with { originalEvent, item, index }. Steps without a command stay plain. Arrow keys, Home and End move between the clickable steps; disabled ones are skipped.

  1. Payment

Click a step

Track

variant="track" is a compact row of markers with a label and a description: done steps get a check, the current one is filled, and an icon replaces the number. Narrower than 560px it stacks in a column. Setting activeIndex to items.length marks every step done.

  1. DomainName and zone, completed
  2. RecordsImport from the registrar
  3. SecurityCertificate and firewall
  4. LaunchGo live

Steps template

ng-template txStepsItem draws the content of each step; it gets the item, index, active and done. Done steps still announce "completed" to screen readers.

  1. Ordered , completed
  2. Packed , completed
  3. Shipped
  4. Delivered

Design tokens

dt changes the tokens of one instance: stepper tokens on tx-stepper (numbers, titles, separators, panels), steps tokens on tx-steps (the track group for the track look).

  1. BuildCompile and test, completed
  2. DeployRoll out to staging
  3. ReleaseShip to everyone