logoAnt Design

⌘ K
  • Design
  • Development
  • Components
  • Blog
  • Resources
YouMindTRACTIANLobeHubCodeRabbit
6.4.5
  • Components Overview
  • Changelog
    v6.4.5
  • General
    • Button
    • FloatButton
    • Icon
    • Typography
  • Layout
    • Divider
    • Flex
    • Grid
    • Layout
    • Masonry
      6.0.0
    • Space
    • Splitter
  • Navigation
    • Anchor
    • Breadcrumb
    • Dropdown
    • Menu
    • Pagination
    • Steps
    • Tabs
  • Data Entry
    • AutoComplete
    • Cascader
    • Checkbox
    • ColorPicker
    • DatePicker
    • Form
    • Input
    • InputNumber
    • Mentions
    • Radio
    • Rate
    • Select
    • Slider
    • Switch
    • TimePicker
    • Transfer
    • TreeSelect
    • Upload
  • Data Display
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Collapse
    • Descriptions
    • Empty
    • Image
    • List
      DEPRECATED
    • Popover
    • QRCode
    • Segmented
    • Statistic
    • Table
    • Tag
    • Timeline
    • Tooltip
    • Tour
    • Tree
  • Feedback
    • Alert
    • Drawer
    • Message
    • Modal
    • Notification
    • Popconfirm
    • Progress
    • Result
    • Skeleton
    • Spin
    • Watermark
  • Other
    • Affix
    • App
    • BorderBeam
      6.4.0
    • ConfigProvider
    • Util
When To Use
Examples
Basic
Error status
Vertical
Clickable
Panel Steps
With icon
Title Placement and Progress
Max Count
Dot Style
Navigation Steps
Inline Steps
Inline Style Combination
Custom semantic dom styling
API
Steps
StepItem
Semantic DOM
Steps
StepItem
Design Token

Steps

A navigation bar that guides users through the steps of a task.
Importimport { Steps } from 'antd';
GitHub
components/stepsIssueOpen issues
Docs
Edit this pageLLMs.md
PaginationTabs

Resources

Ant Design X
Ant Design Charts
Ant Design Pro
Pro Components
Ant Design Mobile
Ant Design Mini
Ant Design Web3
Ant Design Landing-Landing Templates
Scaffolds-Scaffold Market
Umi-React Application Framework
dumi-Component doc generator
qiankun-Micro-Frontends Framework
Ant Motion-Motion Solution
China Mirror 🇨🇳

Community

Awesome Ant Design
Medium
X
yuque logoAnt Design in YuQue
Ant Design in Zhihu
Experience Cloud Blog
seeconf logoSEE Conf-Experience Tech Conference

Help

GitHub
Change Log
FAQ
For Agents
Bug Report
Issues
Discussions
StackOverflow
SegmentFault

Ant XTech logoMore Products

yuque logoYuQue-Document Collaboration Platform
AntV logoAntV-Data Visualization
Egg logoEgg-Enterprise Node.js Framework
Kitchen logoKitchen-Sketch Toolkit
Galacean logoGalacean-Interactive Graphics Solution
WeaveFox logoWeaveFox-AI Development with WeaveFox 🦊
xtech logoAnt Financial Experience Tech
Theme Editor
Made with ❤ by
Ant Group and Ant Design Community
loading

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

API

Common props ref:Common props

Steps

The whole of the step bar.

PropertyDescriptionTypeDefaultVersionGlobal Config
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>-6.0.0
currentTo set the current step, counting from 0. You can overwrite this state by using status of Stepnumber0×
directionTo specify the direction of the step bar, horizontal or verticalstringhorizontal×
iconRenderCustom render icon, please use items.icon first(oriNode, info: { index, active, item }) => ReactNode-×
initialSet the initial step, counting from 0number0×
labelPlacementPlace title and content with horizontal or vertical directionstringhorizontal×
maxCountMaximum number of step items to display (>= 3). Hidden ranges are collapsed into disabled ellipsis steps.number-×
orientationTo specify the orientation of the step bar, horizontal or verticalstringhorizontal×
percentProgress circle percentage of current step in process status (only works on basic Steps)number-4.5.0×
progressDotSteps with progress dot style, customize the progress dot by setting it to a function. Please use type="dot" instead. titlePlacement will be verticalboolean | (iconDot, { index, status, title, content }) => ReactNodefalse×
responsiveChange to vertical direction when screen width smaller than 532pxbooleantrue×
sizeTo specify the size of the step bar, medium and small are currently supportedstringmedium×
statusTo specify the status of current step, can be set to one of the following values: wait process finish errorstringprocess×
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>-6.0.0
titlePlacementPlace title and content with horizontal or vertical directionstringhorizontal×
typeType of steps, can be set to one of the following values: default dot inline navigation panelstringdefault×
variantConfig style variantfilled | outlinedfilled×
onChangeTrigger when Step is changed(current) => void-×
itemsStepItem contentStepItem[]4.24.0×

StepItem

A single step in the step bar.

PropertyDescriptionTypeDefaultVersion
contentDescription of the step, optional propertyReactNode-
descriptionDescription of the step, optional propertyReactNode-
disabledDisable clickbooleanfalse
iconIcon of the step, optional propertyReactNode-
statusTo specify the status. It will be automatically set by current of Steps if not configured. Optional values are: wait process finish errorstringwait
subTitleSubtitle of the stepReactNode-
titleTitle of the stepReactNode-

Semantic DOM

Steps

StepItem

Design Token

Component TokenHow to use?
Token NameDescriptionTypeDefault Value
customIconFontSizeFont size of custom iconnumber24
customIconSizeSize of custom icon containernumber32
customIconTopTop of custom iconnumber0
dotCurrentSizeCurrent size of dotnumber10
dotSizeSize of dotnumber8
iconFontSizeSize of iconnumber14
iconSizeSize of icon containernumber32
iconSizeSMSize of small steps iconstring | number24
iconTopTop of iconnumber-0.5
navArrowColorColor of arrow in navstringrgba(0,0,0,0.25)
navContentMaxWidthMax width of nav contentMaxWidth<string | number> | undefinedunset
Global TokenHow to use?
Token NameDescriptionTypeDefault Value
colorBgContainerContainer background color, e.g: default button, input box, etc. Be sure not to confuse this with `colorBgElevated`.string#ffffff
colorErrorUsed to represent the visual elements of the operation failure, such as the error Button, error Result component, etc.string#ff4d4f
colorErrorBgThe background color of the error state.string#fff2f0
colorErrorBgFilledHoverThe wrong color fills the background color of the suspension state, which is currently only used in the hover effect of the dangerous filled button.string#ffdfdc
colorErrorHoverThe hover state of the error color.string#ff7875
colorFillTertiaryThe third level of fill color is used to outline the shape of the element, such as Slider, Segmented, etc. If there is no emphasis requirement, it is recommended to use the third level of fill color as the default fill color.stringrgba(0,0,0,0.04)
colorPrimaryBrand color is one of the most direct visual elements to reflect the characteristics and communication of the product. After you have selected the brand color, we will automatically generate a complete color palette and assign it effective design semantics.string#1677ff
colorPrimaryBgLight background color of primary color, usually used for weak visual level selection state.string#e6f4ff
colorPrimaryBgHoverThe hover state color corresponding to the light background color of the primary color.string#bae0ff
colorPrimaryHoverHover state under the main color gradient.string#4096ff
colorSplitUsed as the color of separator, this color is the same as colorBorderSecondary but with transparency.stringrgba(5,5,5,0.06)
colorTextDefault text color which comply with W3C standards, and this color is also the darkest neutral color.stringrgba(0,0,0,0.88)
colorTextDescriptionControl the font color of text description.stringrgba(0,0,0,0.45)
colorTextDisabledControl the color of text in disabled state.stringrgba(0,0,0,0.25)
colorTextLabelControl the font color of text label.stringrgba(0,0,0,0.65)
colorTextLightSolidControl the highlight color of text with background color, such as the text in Primary Button components.string#fff
colorTextQuaternaryThe fourth level of text color is the lightest text color, such as form input prompt text, disabled color text, etc.stringrgba(0,0,0,0.25)
colorTextSecondaryThe second level of text color is generally used in scenarios where text color is not emphasized, such as label text, menu text selection state, etc.stringrgba(0,0,0,0.65)
borderRadiusBorder radius of base componentsnumber6
borderRadiusSMSM size border radius, used in small size components, such as Button, Input, Select and other input components in small sizenumber4
controlHeightThe height of the basic controls such as buttons and input boxes in Ant Designnumber32
controlItemBgHoverControl the background color of control component item when hovering.stringrgba(0,0,0,0.04)
fontFamilyThe font family of Ant Design prioritizes the default interface font of the system, and provides a set of alternative font libraries that are suitable for screen display to maintain the readability and readability of the font under different platforms and browsers, reflecting the friendly, stable and professional characteristics.string-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'
fontSizeThe most widely used font size in the design system, from which the text gradient will be derived.number14
fontSizeIconControl the font size of operation icon in Select, Cascader, etc. Normally same as fontSizeSM.number12
fontSizeLGLarge font sizenumber16
fontSizeSMSmall font sizenumber12
lineHeightLine height of text.number1.5714285714285714
lineHeightLGLine height of large text.number1.5
lineHeightSMLine height of small text.number1.6666666666666667
lineTypeBorder style of base componentsstringsolid
lineWidthBorder width of base componentsnumber1
lineWidthBoldThe default line width of the outline class components, such as Button, Input, Select, etc.number2
marginControl the margin of an element, with a medium size.number16
marginSMControl the margin of an element, with a medium-small size.number12
marginXSControl the margin of an element, with a small size.number8
marginXXSControl the margin of an element, with the smallest size.number4
motionDurationMidMotion speed, medium speed. Used for medium element animation interaction.string0.2s
motionDurationSlowMotion speed, slow speed. Used for large element animation interaction.string0.3s
paddingSMControl the small padding of the element.number12
paddingXSControl the extra small padding of the element.number8
paddingXXSControl the extra extra small padding of the element.number4
Basic

The most basic step bar. Use the variant property to set different styles and size to control the size.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Error status

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

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Vertical

A simple step bar in the vertical orientation.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Clickable

Setting onChange makes Steps clickable.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Panel Steps

Panel style steps.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
With icon

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

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Title Placement and Progress

Use titlePlacement to set the label position and display the progress through percent.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Max Count

Use maxCount to limit visible steps. Hidden ranges are collapsed into ellipsis steps.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Dot Style

Steps with progress dot style.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Navigation Steps

Navigation steps.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Inline Steps

Inline type steps, suitable for displaying the process and current state of the object in the list content scene.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Inline Style Combination

Inline step bar modifies the style and aligns through offset.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Custom semantic dom styling

You can customize the semantic dom style of Steps by passing objects/functions through classNames and styles.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
6.0.0
Finished
This is a content.
2
In Progress
Left 00:00:08
This is a content.
3
Waiting
This is a content.
Finished
This is a content.
2
In Progress
Left 00:00:08
This is a content.
3
Waiting
This is a content.
Finished
This is a content.
2
In Progress
Left 00:00:08
This is a content.
3
Waiting
This is a content.
Finished
This is a content.
2
In Progress
Left 00:00:08
This is a content.
3
Waiting
This is a content.
Finished
This is a content
In Process
This is a content
3
Waiting
This is a content
Finished
This is a content.
2
In Progress
This is a content.
3
Waiting
This is a content.
Finished
This is a content.
2
In Progress
This is a content.
3
Waiting
This is a content.
1
Step 1
This is a content.
2
Step 2
This is a content.
3
Step 3
This is a content.
1
Step 1
This is a content.
2
Step 2
This is a content.
3
Step 3
This is a content.
1
Step 1
00:00
This is a content.
Arrow
Step 2
This is a content.
Arrow
3
Step 3
This is a content.
Arrow
1
Step 1
00:00
This is a content.
Arrow
Step 2
This is a content.
Arrow
3
Step 3
This is a content.
Arrow
Login
Verification
Pay
Done
Finished
This is a content.
2
In Progress
This is a content.
3
Waiting
This is a content.

Finished
This is a content.
Progress2
In Progress
This is a content.
3
Waiting
This is a content.

Finished
This is a content.
Progress2
In Progress
This is a content.
3
Waiting
This is a content.
Number of Steps
Step 1
Step 3
4
Step 4
5
Step 5
7
Step 7
Finished
This is a content.
In Progress
This is a content.
Waiting
This is a content.
Finished
This is a content.
In Progress
This is a content.
Waiting
This is a content.
Finished
This is a content.
In Progress
This is a content.
Waiting
This is a content.
Finished
This is a content.
In Progress
This is a content.
Waiting
This is a content.
Step 1
00:00:05
This is a content.
2
Step 2
00:01:02
This is a content.
3
Step 3
waiting for longlong time
This is a content.
Step 1
2
Step 2
3
Step 3
4
Step 4
finish 1
finish 2
3
current process
4
wait
  • Ant Design Title 1

    Ant Design, a design language for background applications, is refined by Ant UED Team
    Step 1
    This is Step 1
    Step 2
    This is Step 2
    Step 3
    This is Step 3
  • Ant Design Title 2

    Ant Design, a design language for background applications, is refined by Ant UED Team
    Step 1
    This is Step 1
    Step 2
    This is Step 2
    Step 3
    This is Step 3
  • Ant Design Title 3

    Ant Design, a design language for background applications, is refined by Ant UED Team
    Step 1
    This is Step 1
    Step 2
    This is Step 2
    Step 3
    This is Step 3
  • Ant Design Title 4

    Ant Design, a design language for background applications, is refined by Ant UED Team
    Step 1
    This is Step 1
    Step 2
    This is Step 2
    Step 3
    This is Step 3
Step 1
Sub Title
This is Step 1
Step 2
Sub Title
This is Step 2
Step 3
Sub Title
This is Step 3
Step 4
Sub Title
This is Step 4
Step 5
Sub Title
This is Step 5
Step 1
Sub Title
This is Step 1
Step 2
Sub Title
This is Step 2
Step 3
Sub Title
This is Step 3
Step 4
Sub Title
This is Step 4
Step 5
Sub Title
This is Step 5
Step 3
Sub Title
This is Step 3
Step 4
Sub Title
This is Step 4
Step 5
Sub Title
This is Step 5
Finished
This is a content.
2
In Progress
This is a content.
3
Waiting
This is a content.
Finished
This is a content.
2
In Progress
This is a content.
3
Waiting
This is a content.
Step 1
00:00
This is a content.
2
Step 2
00:01
This is a content.
3
Step 3
00:02
This is a content.
Step 1
00:00
This is a content.
Arrow
2
Step 2
00:01
This is a content.
Arrow
3
Step 3
00:02
This is a content.
Arrow
  • root
    Root element with flex layout, nowrap, alignment, CSS variables and other basic step container styles
  • item
    Step item element with flex layout, relative positioning and other basic step item container styles
  • itemWrapper
    Step item wrapper element with flex layout, nowrap, top padding and other step content wrapping styles
  • itemIcon
    Step item icon element with icon size, positioning, font-size and other icon display related styles
  • itemHeader
    Step item header element with flex layout, nowrap, alignment and other header area layout styles
  • itemTitle
    Step item title element with color, font-size, line-height, word-break, transitions and other title text styles
  • itemSubtitle
    Step item subtitle element with color, font-weight, font-size, line-height, margin, word-break and other subtitle styles
  • itemSection
    Step item section element with step content area layout and styling
  • itemContent
    Step item content element with color, font-size, line-height, word-break, transitions and other content text styles
  • itemRail
    Step item rail element with border-style, border-width, transitions and other connecting line styles
Step 1
00:00
This is a content.
2
Step 2
00:01
This is a content.
3
Step 3
00:02
This is a content.
Step 1
00:00
This is a content.
Arrow
2
Step 2
00:01
This is a content.
Arrow
3
Step 3
00:02
This is a content.
Arrow
  • root
    Root element
  • wrapper
    Step item wrapper element
  • icon
    Step item icon element
  • header
    Step item header element
  • title
    Step item title element
  • subtitle
    Step item subtitle element
  • section
    Step item section element
  • content
    Step item content element
  • rail
    Step item rail element