mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +08:00
23 lines
676 B
TypeScript
23 lines
676 B
TypeScript
|
import React from 'react';
|
||
|
import { UserOutlined } from '@ant-design/icons';
|
||
|
import { Avatar } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<div>
|
||
|
<Avatar size={64} icon={<UserOutlined />} />
|
||
|
<Avatar size="large" icon={<UserOutlined />} />
|
||
|
<Avatar icon={<UserOutlined />} />
|
||
|
<Avatar size="small" icon={<UserOutlined />} />
|
||
|
</div>
|
||
|
<div>
|
||
|
<Avatar shape="square" size={64} icon={<UserOutlined />} />
|
||
|
<Avatar shape="square" size="large" icon={<UserOutlined />} />
|
||
|
<Avatar shape="square" icon={<UserOutlined />} />
|
||
|
<Avatar shape="square" size="small" icon={<UserOutlined />} />
|
||
|
</div>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|