mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
1fc1710582
* split demos close #17396 * snapshot updated * split all demo * fix lint error * better code style * change complex to error * sort demos
28 lines
379 B
Markdown
28 lines
379 B
Markdown
---
|
|
order: 8
|
|
title:
|
|
zh-CN: 自定义 icon
|
|
en-US: Custom icon
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
自定义 icon。
|
|
|
|
## en-US
|
|
|
|
Custom icon.
|
|
|
|
```jsx
|
|
import { Result, Icon, Button } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Result
|
|
icon={<Icon type="smile" theme="twoTone" />}
|
|
title="Great, we have done all the operations!"
|
|
extra={<Button type="primary">Next</Button>}
|
|
/>,
|
|
mountNode,
|
|
);
|
|
```
|