Zum Hauptinhalt springen
VelinStyle v1.2.0
⌂ Startseite
  1. Erste Schritte
  2. Komponenten
  3. Schrittanzeige

Schrittanzeige 1.2.0

Mehrstufige Fortschrittsindikatoren verfügbar als <velin-stepper> Web Component oder die reine CSS- .velin-stepper Klasse. English: Schrittanzeige

Reifegrad: Dokumentiert als stabil in VelinStyle 1.2.0. Design Intelligence (Plan / Review / Agent-Meta) ist separat und Beta / Foundation wo vermerkt.

Wann verwenden

Wann nicht

CSS-Schrittanzeige

Nutze .velin-stepper with .velin-stepper__step, __indicator, and __label. Mark state with --active / --completed.

Konto
Profil
Prüfen
Fertig
<div class="velin-stepper" role="list" aria-label="Checkout progress">
  <div class="velin-stepper__step velin-stepper__step--completed" role="listitem">
    <span class="velin-stepper__indicator" aria-hidden="true"></span>
    <span class="velin-stepper__label">Account</span>
  </div>
  <div class="velin-stepper__step velin-stepper__step--active" role="listitem" aria-current="step">
    <span class="velin-stepper__indicator" aria-hidden="true"></span>
    <span class="velin-stepper__label">Profile</span>
  </div>
  <div class="velin-stepper__step" role="listitem">…</div>
</div>

Web Component

Pass comma-separated labels and a zero-based active index. Drive progress with next(), prev(), or goTo(n) (dispatches velin-step-change). Default-slot children render in part="panels" for accompanying step content you show/hide from that event.

<velin-stepper id="stepper" active="1"
  labels="Account,Profile,Review,Done" aria-label="Checkout">
</velin-stepper>

<button type="button" onclick="document.getElementById('stepper').prev()">Zurück</button>
<button type="button" onclick="document.getElementById('stepper').next()">Weiter</button>

Vertikales Layout

Füge .velin-stepper--vertical on the CSS stepper. The web component has no orientation attribute.

Konto erstellen
E-Mail verifizieren
Passwort setzen
<div class="velin-stepper velin-stepper--vertical" role="list" aria-label="Onboarding">
  <div class="velin-stepper__step velin-stepper__step--completed" role="listitem">…</div>
  <div class="velin-stepper__step velin-stepper__step--active" role="listitem" aria-current="step">…</div>
  <div class="velin-stepper__step" role="listitem">…</div>
</div>

Barrierefreiheit

API (<velin-stepper>)

Attribute

AttributTypBeschreibung
activeNumberObserved — zero-based current step
labelsStringObserved — comma-separated step labels
aria-labelStringObserved — name for the steps list

Methoden & events

APIBeschreibung
next() / prev() / goTo(step)Update active and rebuild markers
velin-step-changeBubbles with detail: { step }

Parts: steps, panels. Default slot = panel nodes.

Best Practices & Fallstricke

Legacy *-wc Tags

<velin-tooltip-wc> and <velin-stepper-wc> remain registered as deprecated aliases. Prefer <velin-tooltip> and <velin-stepper> in new markup.