Stepper

複数ステップのフローの進捗をドットまたは番号付きステップで示し、「ステップ x / y」の表示を添えます。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 対応

使い方

  1. AccountEmail and password
  2. VerifyEnter the code
  3. RecoverySave the phrase
Step 2 of 3
Step 2 of 3

インポート

ts
import {
  SoneStepperComponent,
} from "@surface-one/angular/stepper";

API リファレンス

SoneStepperComponentコンポーネント

Progress through a multi-step flow. `current` is the step INDEX, not its key: "Step x of y", `linear` and the completed / active / inactive split are index arithmetic, and a key is one `steps.findIndex()` away.

セレクター
sone-stepper
入力
名前型 デフォルト
stepsreadonly SoneStep[][]
current双方向

The active step's index (0-based); out-of-range values are clamped.

number0
variant

`dots` — the compact onboarding progress; `numbered` — circles with labels.

StepperVariant"dots"
orientationStepperOrientation"horizontal"
linear

Only completed steps and the active one can be clicked — never a later one.

booleanfalse
disabled

Progress display only: the steps are not buttons.

booleanfalse
showCount

The visible "Step x of y" text.

booleantrue
ariaLabel

The group's accessible name.

string | null$localize`Progress`
出力
名前型
stepClick

A user picked a step (`current` is already updated).

SoneStepClick