ant-design/components/result/demo/customIcon.md
陈帅 1fc1710582
doc: split demos (#17415)
* split demos

close #17396

* snapshot updated

* split all demo

* fix lint error

* better code style

* change complex to error

* sort demos
2019-07-04 15:14:13 +08:00

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,
);
```