StepShell

App

Wrapper card for a single step in a multi-step flow. Border and number circle change based on active / done / inactive state; the done + onEdit combination shows an Edit button alongside the summary.

Three states — done / active / inactive

Preview

Account details

jane@acme.com · Admin role

2

Billing address

3

Payment method

Code
<%- include('modules/app/StepShell', {
  number: 1, title: 'Account details', done: true, onEdit: '/checkout?step=1',
  summary: '

' + user.email + ' · ' + user.role + ' role

' }) %> <%- include('modules/app/StepShell', { number: 2, title: 'Billing address', active: true, children: addressFormHtml }) %> <%- include('modules/app/StepShell', { number: 3, title: 'Payment method' }) %>

Active step only

Preview
2

Choose a plan

Code
<%- include('modules/app/StepShell', {
  number: 2,
  title:  'Choose a plan',
  active: true,
  children: planSelectorHtml
}) %>
Source modules/app/StepShell.ejs