Stepper
Step indicator for multi-step workflows.
<arc-stepper>Overview
Stepper shows where the reader is in a multi-step flow such as onboarding or checkout. It has no controls. You set active (zero-based) as the reader moves on, and every step before it shows as completed. For a wizard with Back and Next buttons, use StepperNav.
Each step is an <arc-step> child with a label. Stepper reads the children as data and renders its own copy of each, so adding or removing a step means adding or removing an element.
Guidelines
Do
- Use three to five steps, and group a longer flow into phases
- Keep labels to one or two words so they fit under the 36px circles
- Advance `active` only once the current step is valid
- Put the stepper at the top of the form or wizard
Don't
- Don't use it as navigation. Use StepperNav
- Don't rename steps partway through. Readers lose track of where they are
Features
- Each step is a 36px numbered circle with an uppercase label below it
- Completed steps fill with `--accent-primary` and show a check, the active step has an accent ring that pulses, and upcoming steps are muted
- The line leading to each completed or active step turns `--accent-primary`
- The steps are a `role="list"` labelled "Progress", and the active step has `aria-current="step"`
Preview
2
Profile
3
Review
4
Complete
Usage
<arc-stepper active="1">
<arc-step label="Account"></arc-step>
<arc-step label="Profile"></arc-step>
<arc-step label="Review"></arc-step>
</arc-stepper>import { Step, Stepper } from '@arclux/arc-ui-react';
export default function Example() {
return (
<Stepper active="1">
<Step label="Account" />
<Step label="Profile" />
<Step label="Review" />
</Stepper>
);
}<script setup>
import { Step, Stepper } from '@arclux/arc-ui-vue';
</script>
<template>
<Stepper active="1">
<Step label="Account" />
<Step label="Profile" />
<Step label="Review" />
</Stepper>
</template><script>
import { Step, Stepper } from '@arclux/arc-ui-svelte';
</script>
<Stepper active="1">
<Step label="Account" />
<Step label="Profile" />
<Step label="Review" />
</Stepper>import { Component } from '@angular/core';
import { Step, Stepper } from '@arclux/arc-ui-angular';
@Component({
imports: [Step, Stepper],
template: `
<arc-stepper active="1">
<arc-step label="Account"></arc-step>
<arc-step label="Profile"></arc-step>
<arc-step label="Review"></arc-step>
</arc-stepper>
`,
})
export class MyComponent {}import { Step, Stepper } from '@arclux/arc-ui-solid';
export default function Example() {
return (
<Stepper active="1">
<Step label="Account" />
<Step label="Profile" />
<Step label="Review" />
</Stepper>
);
}import { Step, Stepper } from '@arclux/arc-ui-preact';
export default function Example() {
return (
<Stepper active="1">
<Step label="Account" />
<Step label="Profile" />
<Step label="Review" />
</Stepper>
);
}<!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-stepper — requires stepper.css + base.css (or arc-ui.css) -->
<div class="arc-stepper">
<div
class="step step--"
role="listitem"
aria-current=""
>
<div class="step__header">
<span class="step__circle">
</span>
</div>
<span class="step__label"></span>
</div>
</div><!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-stepper — self-contained, no external CSS needed -->
<div class="arc-stepper" style="display: block">
<div
role="listitem"
aria-current=""
>
<div style="display: flex; align-items: center; width: 100%; position: relative">
<span style="width: 32px; height: 32px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-family: 'Tomorrow', system-ui, sans-serif; font-size: 13px; font-weight: 600; flex-shrink: 0; position: relative; z-index: 1; margin: 0 auto; box-sizing: border-box; background: rgb(77, 126, 247); color: rgb(232, 232, 236); border: 2px solid rgb(77, 126, 247); box-shadow: 0 0 12px rgba(77, 126, 247, 0.25)">
</span>
</div>
<span style="margin-top: 8px; font-family: 'Host Grotesk', system-ui, sans-serif; font-size: 13px; color: rgb(138, 138, 150); text-align: center; font-weight: 600"></span>
</div>
</div>API
activenumber0- Zero-indexed active step; steps before this index show as completed. Clamped to the range of rendered steps.
Step
<arc-step>Individual step within a Stepper.
labelstring''- Step label text