logoAnt Design

⌘ K
  • 디자인
  • 개발
  • 컴포넌트
  • 블로그
  • 자료
5.21.3
  • Components Overview
  • General
    • Button
    • FloatButton
      5.0.0
    • Icon
    • Typography
  • Layout
    • Divider
    • Flex
      5.10.0
    • Grid
    • Layout
    • Space
    • Splitter
      5.21.0
  • Navigation
    • Anchor
    • Breadcrumb
    • Dropdown
    • Menu
    • Pagination
    • Steps
  • Data Entry
    • AutoComplete
    • Cascader
    • Checkbox
    • ColorPicker
      5.5.0
    • 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
    • Popover
    • QRCode
      5.1.0
    • Segmented
    • Statistic
    • Table
    • Tabs
    • Tag
    • Timeline
    • Tooltip
    • Tour
      5.0.0
    • Tree
  • Feedback
    • Alert
    • Drawer
    • Message
    • Modal
    • Notification
    • Popconfirm
    • Progress
    • Result
    • Skeleton
    • Spin
    • Watermark
      5.1.0
  • Other
    • Affix
    • App
      5.1.0
    • ConfigProvider
    • Util
      5.13.0

Progress

Display the current progress of the operation.
가져오기import{ Progress }from"antd";
소스components/progress
문서
이 페이지 수정변경 로그

Resources

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

Community

Awesome Ant Design
Medium
Twitter
yuque logoAnt Design in YuQue
Ant Design in Zhihu
Experience Cloud Blog
seeconf logoSEE Conf-Experience Tech Conference
Work with Us

Help

GitHub
Change Log
FAQ
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
xtech logoAnt Financial Experience Tech
Theme Editor
Made with ❤ by
Ant Group and Ant Design Community
loading

When To Use

If it will take a long time to complete an operation, you can use Progress to show the current progress and status.

  • When an operation will interrupt the current interface, or it needs to run in the background for more than 2 seconds.
  • When you need to display the completion percentage of an operation.

Examples

API

Common props ref:Common props

Properties that shared by all types.

PropertyDescriptionTypeDefaultVersion
formatThe template function of the contentfunction(percent, successPercent)(percent) => percent + %-
percentTo set the completion percentagenumber0-
showInfoWhether to display the progress value and the status iconbooleantrue
statusTo set the status of the Progress, options: success exception normal active(line only)string-
strokeColorThe color of progress barstring--
strokeLinecapTo set the style of the progress linecapround | butt | square, see stroke-linecapround-
successConfigs of successfully progress bar{ percent: number, strokeColor: string }--
trailColorThe color of unfilled partstring--
typeTo set the type, options: line circle dashboardstringline
sizeProgress sizenumber | [number | string, number] | { width: number, height: number } | "small" | "default""default"5.3.0, Object: 5.18.0

type="line"

PropertyDescriptionTypeDefaultVersion
stepsThe total step countnumber--
strokeColorThe color of progress bar, render linear-gradient when passing an object, could accept string[] when has steps.string | string[] | { from: string; to: string; direction: string }-4.21.0: string[]
percentPositionProgress value position, passed in object, align indicates the horizontal position of the value, type indicates whether the value is inside or outside the progress bar{ align: string; type: string }{ align: "end", type: "outer" }5.18.0

type="circle"

PropertyDescriptionTypeDefaultVersion
stepsThe total step count.When passing an object, count refers to the number of steps, and gap refers to the distance between them.When passing number, the default value for gap is 2.number | { count: number, gap: number }-5.16.0
strokeColorThe color of circular progress, render gradient when passing an objectstring | { number%: string }--
strokeWidthTo set the width of the circular progress, unit: percentage of the canvas widthnumber6-

type="dashboard"

PropertyDescriptionTypeDefaultVersion
stepsThe total step count.When passing an object, count refers to the number of steps, and gap refers to the distance between them.When passing number, the default value for gap is 2.number | { count: number, gap: number }-5.16.0
gapDegreeThe gap degree of half circle, 0 ~ 295number75
gapPositionThe gap position, options: top bottom left rightstringbottom
strokeWidthTo set the width of the dashboard progress, unit: percentage of the canvas widthnumber6

Design Token

컴포넌트 토큰어떻게 사용하나요?

토큰 이름설명타입기본값
circleIconFontSize圆形进度条图标大小string1.1666666666666667em
circleTextColor圆形进度条文字颜色stringrgba(0, 0, 0, 0.88)
circleTextFontSize圆形进度条文本大小string1em
defaultColor进度条默认颜色string#1677ff
lineBorderRadius条状进度条圆角number100
remainingColor进度条剩余部分颜色stringrgba(0, 0, 0, 0.06)

글로벌 토큰어떻게 사용하나요?

Progress bar
codepen icon
External Link Icon
expand codeexpand code
Mini size progress bar
codepen icon
External Link Icon
expand codeexpand code
Mini size circular progress bar
codepen icon
External Link Icon
expand codeexpand code
Custom text format
codepen icon
External Link Icon
expand codeexpand code
Progress bar with success segment
codepen icon
External Link Icon
expand codeexpand code
Custom line gradient
codepen icon
External Link Icon
expand codeexpand code
Circular progress bar with steps
codepen icon
External Link Icon
expand codeexpand code
5.16.0
Change progress value position
codepen icon
External Link Icon
expand codeexpand code
5.18.0
Circular progress bar
codepen icon
External Link Icon
expand codeexpand code
Responsive circular progress bar
codepen icon
External Link Icon
expand codeexpand code
Dynamic
codepen icon
External Link Icon
expand codeexpand code
Dashboard
codepen icon
External Link Icon
expand codeexpand code
Stroke Linecap
codepen icon
External Link Icon
expand codeexpand code
Progress bar with steps
codepen icon
External Link Icon
expand codeexpand code
Progress size
codepen icon
External Link Icon
expand codeexpand code
30%
50%
30%
50%
30%
75 Days
Done
60%
60%
60%
99.9%
50%
90%
93%
90%
93%
Custom count:
Custom gap:
50%
0%
10%
50%
60%
100%
60%
60%
75%
代码发布
0%
0%
75%
75%
75%
75%
75%
50%
30%
60%
50%
50%
50%
50%
50%
50%
50%
50%
50%
50%
50%