mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
29 lines
404 B
Markdown
29 lines
404 B
Markdown
---
|
|
order: 8
|
|
title:
|
|
zh-CN: 自定义 icon
|
|
en-US: Custom icon
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
自定义 icon。
|
|
|
|
## en-US
|
|
|
|
Custom icon.
|
|
|
|
```jsx
|
|
import { Result, Button } from 'antd';
|
|
import { SmileOutlined } from '@ant-design/icons';
|
|
|
|
ReactDOM.render(
|
|
<Result
|
|
icon={<SmileOutlined />}
|
|
title="Great, we have done all the operations!"
|
|
extra={<Button type="primary">Next</Button>}
|
|
/>,
|
|
mountNode,
|
|
);
|
|
```
|