mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
31 lines
451 B
Markdown
31 lines
451 B
Markdown
---
|
|
order: 8
|
|
title:
|
|
zh-CN: 自定义 icon
|
|
en-US: Custom icon
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
自定义 icon。
|
|
|
|
## en-US
|
|
|
|
Custom icon.
|
|
|
|
```tsx
|
|
import { SmileOutlined } from '@ant-design/icons';
|
|
import { Button, Result } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<Result
|
|
icon={<SmileOutlined />}
|
|
title="Great, we have done all the operations!"
|
|
extra={<Button type="primary">Next</Button>}
|
|
/>
|
|
);
|
|
|
|
export default App;
|
|
```
|