# KptStepper (kpt-stepper) + KptStep (kpt-step) A step wizard. A header with numbered steps + the active content (lazy). Import: `import { KptStepper, KptStep } from '@konce-pt/angular';` ## KptStepper - `activeIndex`: model; public methods: `next()`, `prev()`, `goTo(i)` - `animated`: boolean (default true) - the switching motion (see "Motion") - `animationDuration`: number (default 500) - the pace of the whole motion in ms: the content enter, and the line (a segment takes 0.84x, a multi-step jump fits in 1.8x) ## KptStep - `label`: string (required) ## Example ...Next ... ## Motion Switching steps reads as colour flowing: the state changes at once (classes, `aria-current`, the marker names), but the connector fills from grey to `--kpt-color-primary` with a glowing comet running along it, and a marker turns "done" (fills from the centre, the check pops in) only when the colour reaches it; the new active step sends out a ring and keeps a soft glow. A jump over several steps runs the segments one after another within ~0.9 s; going back retracts them from the end. The content of the new step slides in from the side of the move and sharpens out of a blur, the old one leaves as a ghost the other way, and the body height changes smoothly. The timings come from `stepperSchedule` in `@konce-pt/motion` (CSS variables `--kpt-stepper-mark-delay`, `--kpt-stepper-line-delay`, `--kpt-stepper-line-dur` on the steps), the comet and the ring from `playStepperLight`, the ghost from `preparePanelSwap`. Follows `animated` and `enter` from `provideKptMotion` (`none` - everything switches at once, `fade` - no comet and ring); `enabled: false` and the system "reduce motion" setting always win. ## Tokens The active/completed step: `--kpt-color-primary` (marker, connector). ## Accessibility The header is an `
    ` of real buttons, so every step is reachable with the keyboard and the list announces how many there are. Each marker is named from the dictionary - `stepper.step` ("Step 2: Delivery") or `stepper.stepDone` ("..., completed") - because the visible marker is only a number or a check; the visible label is `aria-hidden` so it is not read twice. The active marker carries `aria-current="step"`. After `next()` focus stays where it was - move it into the new step yourself when the step is long. ## Inactive content is destroyed Switching renders the new panel from scratch (that is what the enter animation starts from), so local state inside the previous one - an unsent file upload, expanded sections, scroll position - is lost. Keep such state in your own model, outside the panel.