Back to Ant Design

Result

components/result/index.en-US.md

6.3.71.7 KB
Original Source

When To Use

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

Examples

<!-- prettier-ignore -->

<code src="./demo/success.tsx">Success</code> <code src="./demo/info.tsx">Info</code> <code src="./demo/warning.tsx">Warning</code> <code src="./demo/403.tsx">403</code> <code src="./demo/404.tsx">404</code> <code src="./demo/500.tsx">500</code> <code src="./demo/error.tsx">Error</code> <code src="./demo/customIcon.tsx">Custom icon</code> <code src="./demo/style-class.tsx" version="6.0.0">Custom semantic dom styling</code> <code src="./demo/component-token.tsx" debug>Component Token</code>

API

Common props ref:Common props

PropertyDescriptionTypeDefaultVersion
classNamesCustomize class for each semantic structure inside the component. Supports object or functionRecord<SemanticDOM, string> | (info: { props }) => Record<SemanticDOM, string>-
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>-
subTitleThe subTitleReactNode-
titleThe titleReactNode-

Semantic DOM

<code src="./demo/_semantic.tsx" simplify="true"></code>

Design Token

<ComponentTokenTable component="Result"></ComponentTokenTable>