mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 02:18:07 +08:00
16 lines
296 B
TypeScript
16 lines
296 B
TypeScript
|
import React from 'react';
|
||
|
import { Avatar } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
|
||
|
A
|
||
|
</Avatar>
|
||
|
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
|
||
|
ABC
|
||
|
</Avatar>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|