mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
40e77c40d3
* docs: add dark overview * docs: show dark cover in dark theme * docs: update cover
36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
---
|
|
group: Feedback
|
|
category: Components
|
|
title: Result
|
|
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-e2IRroDJyEAAAAAAAAAAAAADrJ8AQ/original
|
|
coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-0kxQrbHx2kAAAAAAAAAAAAADrJ8AQ/original
|
|
---
|
|
|
|
Used to feed back the results of a series of operational tasks.
|
|
|
|
## 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>
|
|
|
|
## API
|
|
|
|
| Property | Description | Type | Default |
|
|
| --- | --- | --- | --- |
|
|
| extra | Operating area | ReactNode | - |
|
|
| icon | Custom back icon | ReactNode | - |
|
|
| status | Result status, decide icons and colors | `success` \| `error` \| `info` \| `warning` \| `404` \| `403` \| `500` | `info` |
|
|
| subTitle | The subTitle | ReactNode | - |
|
|
| title | The title | ReactNode | - |
|