ant-design/components/avatar/demo/fallback.tsx
lijianan b6c32f6a58
demo: update Avatar demo (#40356)
* demo: update Avatar demo

* ci

* ci

* add margin
2023-01-21 12:38:47 +08:00

16 lines
313 B
TypeScript

import { Avatar, Space } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Space>
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
A
</Avatar>
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
ABC
</Avatar>
</Space>
);
export default App;