VOOZH about

URL: https://ant.design/components/result/

⇱ Result - Ant Design


ProgressSkeleton
👁 loading

When To Use

Use when important operations need to inform the user to process the results and the feedback is more complicated.

Examples

API

Common props ref:Common props

PropertyDescriptionTypeDefaultVersionGlobal Config
classNamesCustomize class for each semantic structure inside the component. Supports object or functionRecord<SemanticDOM, string> | (info: { props }) => Record<SemanticDOM, string>-6.0.06.0.0
extraOperating areaReactNode-×
iconCustom back iconReactNode-×
statusResult status, decide icons and colorssuccess | error | info | warning | 404 | 403 | 500info×
stylesCustomize inline style for each semantic structure inside the component. Supports object or functionRecord<SemanticDOM, CSSProperties> | (info: { props }) => Record<SemanticDOM, CSSProperties>-6.0.06.0.0
subTitleThe subTitleReactNode-×
titleThe titleReactNode-×

Semantic DOM

Design Token

Component TokenHow to use?
Token NameDescriptionTypeDefault Value
extraMarginMargin of extra areaMargin<string | number> | undefined24px 0 0 0
iconFontSizeIcon sizestring | number72
subtitleFontSizeSubtitle font sizenumber14
titleFontSizeTitle font sizestring | number24
Global TokenHow to use?
Token NameDescriptionTypeDefault Value
colorErrorUsed to represent the visual elements of the operation failure, such as the error Button, error Result component, etc.string#ff4d4f
colorFillAlterControl the alternative background color of element.stringrgba(0,0,0,0.02)
colorInfoUsed to represent the operation information of the Token sequence, such as Alert, Tag, Progress, and other components use these map tokens.string#1677ff
colorSuccessUsed to represent the token sequence of operation success, such as Result, Progress and other components will use these map tokens.string#52c41a
colorTextDescriptionControl the font color of text description.stringrgba(0,0,0,0.45)
colorTextHeadingControl the font color of heading.stringrgba(0,0,0,0.88)
colorWarningUsed to represent the warning map token, such as Notification, Alert, etc. Alert or Control component(like Input) will use these map tokens.string#faad14
lineHeightLine height of text.number1.5714285714285714
lineHeightHeading3Line height of h3 tag.number1.3333333333333333
marginXSControl the margin of an element, with a small size.number8
paddingControl the padding of the element.number16
paddingLGControl the large padding of the element.number24
paddingXLControl the extra large padding of the element.number32
paddingXSControl the extra small padding of the element.number8
Success

Show successful results.

Info

Show processing results.

Warning

The result of the warning.

403

you are not authorized to access this page.

404

The page you visited does not exist.

500

Something went wrong on server.

Error

Complex error feedback.

Custom icon

Custom icon.

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

6.0.0
Successfully Purchased Cloud Server ECS!
Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait.
Your operation has been executed
There are some problems with your operation.
403
Sorry, you are not authorized to access this page.
404
Sorry, the page you visited does not exist.
500
Sorry, something went wrong.
Submission Failed
Please check and modify the following information before resubmitting.
The content you submitted has the following error:
Your account has been frozen.
Your account is not yet eligible to apply.
Great, we have done all the operations!
classNames Object
This is a subtitle
Content area
classNames Function
Dynamic class names
title
subTitle
The Content of Result
  • root
    6.0.0
    Root element with text alignment, layout styles and other basic container styles
  • icon
    6.0.0
    Icon element with margin, text alignment, font size, status colors and other icon styles
  • title
    6.0.0
    Title element with font size, text color, line height, text alignment and other text styles
  • subTitle
    6.0.0
    Subtitle element with font size, text color, line height and other text styles
  • extra
    6.0.0
    Action area element with margin, text alignment, inner element spacing and other layout styles
  • body
    6.0.0
    Content element with margin, padding, background color and other content area styles