logo

Steps

Steps is a navigation bar that guides users through the steps of a task.

When To Use

  • When a given task is complicated or has a certain sequence in the series of subtasks, we can decompose it into several steps to make things easier.

Examples

The most basic step bar.

expand code expand code

By setting like this: <Steps size="small">, you can get a mini version.

expand code expand code

You can use your own custom icons by setting the property icon for Steps.Step.

expand code expand code

Cooperate with the content and buttons, to represent the progress of a process.

expand code expand code

A simple step bar in the vertical direction.

expand code expand code

A simple mini version step bar in the vertical direction.

expand code expand code

By using status of Steps, you can specify the state for current step.

expand code expand code

Steps with progress dot style.

expand code expand code

(WIP) You can customize the display for Steps with progress dot style.

expand code expand code

Setting onChange makes Steps clickable.

expand code expand code

Navigation steps.

expand code expand code

Steps with progress.

expand code expand code

Steps API#

Property Description Type Default Value
Current ParameterCurrent step index, zero based Int32 0
Percent ParameterPercent display for current step Double? --
ProgressDot ParameterCustom rendering for progress dot. Will also set ShowProgressDot to true if set. RenderFragment --
ShowProgressDot ParameterShow progress dot as opposed to the title, description, icon, etc Boolean false
Direction ParameterDirection of the step bar String horizontal
LabelPlacement ParameterPlace title and description horizontal or vertical String horizontal
Type ParameterType of steps. Possible Values: default, navigation String default
Size ParameterSize of steps. Possible Values: default, small String default
StartIndex ParameterStarting step index Int32 0
Status ParameterStatus of the current step. Possible Values: wait, process, finish, error String process
ChildContent ParameterChild content should contain Step elements RenderFragment --
OnChange ParameterCallback executed when step changes. Received the index of the step changing to EventCallback<Int32> --
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --

Step API#

Property Description Type Default Value
Icon ParameterIcon of the step String --
Status ParameterTo specify the status. It will be automatically set by current of Steps if not configured. Possible Values: wait, process, finish, error String --
Title ParameterTitle of the step String --
TitleTemplate ParameterTitle of the step RenderFragment --
Subtitle ParameterSubtitle of the step String --
SubtitleTemplate ParameterSubtitle of the step RenderFragment --
Description ParameterDescription of the step String string.Empty
DescriptionTemplate ParameterDescription of the step RenderFragment --
OnClick ParameterCallback executed when clicking step EventCallback<MouseEventArgs> --
Disabled ParameterDisable click Boolean --
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --
Pagination AutoComplete
文档已更新,请点击 此处 更新。
A new version of this app is available. Click here to update.