[New Component] Stepper (Wizard) with per-step validation

オープン
#1,336 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bootstrap, csharp
領域
frontend

調査の方向性

The work is a new component under blazorbootstrap/Components/Stepper/, and the issue says the existing Tabs component is the nearest reference, so read that first. Demo pages and the docs page docs/docs/05-components/stepper.mdx are the other touchpoints. Done means the must-have checklist, the demo page scenarios and the Server and WebAssembly checks all pass, which is a multi-step design effort rather than a first-timer task.

索引モデルが issue の本文から書いたものです。

説明

area-forms area-stepper new component

Summary

Add a Stepper component that guides users through a multi-step process (checkout, onboarding, setup wizard) with optional per-step form validation.

Motivation

Stepper/wizard is one of the most up-voted component requests across the Blazor UI ecosystem. Blazor Bootstrap users currently build it manually on top of Tabs. The key ask is validating each step's form before moving forward.

Proposed API (draft)

<Stepper @bind-ActiveStepIndex="step" Linear="true" Orientation="Orientation.Horizontal"
         OnStepChanging="OnStepChangingAsync" OnFinish="SubmitAsync">
    <StepperStep Title="Account" IconName="IconName.Person" EditContext="accountContext">
        ...
    </StepperStep>
    <StepperStep Title="Address" Optional="true">...</StepperStep>
    @if (needsPayment)
    {
        <StepperStep Title="Payment">...</StepperStep>
    }
    <StepperStep Title="Review">...</StepperStep>
</Stepper>

Must-have features (v1)

  • Orientation (Horizontal, Vertical).
  • Step header: number (default), IconName, or HeaderTemplate; Title and Description.
  • Linear mode (cannot skip ahead) and non-linear mode (click any header).
  • Per-step EditContext: advancing validates the current step and blocks on errors.
  • OnStepChanging (async, cancellable via event args) and OnStepChanged.
  • @bind-ActiveStepIndex; methods NextAsync, PreviousAsync, GoToAsync(index), ResetAsync.
  • Step states: Completed, Active, Error, Disabled, Optional, Skippable.
  • Conditional steps: steps added/removed at runtime re-index correctly.
  • Built-in Back / Next / Finish buttons with text parameters and ActionsTemplate override; OnFinish event.

Accessibility

  • Step list rendered as an ordered list; active header has aria-current="step".
  • Step state (completed, error) announced in text, not by color only.
  • Focus moves to the step panel heading on step change.

Out of scope (later)

  • Responsive collapse of headers into "Step 2 of 5".
  • Summary/review step helper.

Acceptance criteria

  • Component in blazorbootstrap/Components/Stepper/.
  • XML docs on all public parameters, methods, and events.
  • Demo page covering: horizontal, vertical, linear, non-linear, validation per step, cancel step change, optional/skippable, conditional steps, custom headers, custom actions.
  • Verified in Server and WebAssembly demo hosts.
  • Docs page docs/docs/05-components/stepper.mdx.
  • Builds for .NET 8, 9, 10.
主要言語
HTML
スター
1.2k
フォーク
111
平均マージ
4分
マージ済み PR(30日)
55

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vikramlearning/blazorbootstrap のほかの issue

vikramlearning/blazorbootstrap の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。