Result
Feedback on the result of the previous operation.
Install
npm install antd-mobile@5.43.0
antd-mobile is for mobile web, not React Native or Mini Programs. React 19 projects must register createRoot with unstableSetRender at the entry, or imperative APIs such as Toast and Dialog cannot render. Switch dark mode with <html data-prefers-color-scheme="dark">.
Examples come from the official Ant Design Mobile repository (MIT) at the commit published as npm 5.43.0. Presentation helpers such as DemoBlock are JGuang rewrites, not antd-mobile APIs.
Feedback on the result of the previous operation.
When to Use
It is used when there is an important operation that needs to inform the user of the processing result, and the feedback content is complex.
Demos
Result
Props
| Name | Description | Type | Default |
|---|---|---|---|
| description | Description | ReactNode | - |
| icon | Customized icon | ReactNode | - |
| status | Status types | 'success' | 'error' | 'info' | 'waiting' | 'warning' | 'info' |
| title | Title | ReactNode | - |