ant-design/components/result/demo/customIcon.md
2022-05-23 14:37:16 +08:00

451 B

order title
8
zh-CN en-US
自定义 icon Custom icon

zh-CN

自定义 icon。

en-US

Custom icon.

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;