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

* ci

* ci

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

17 lines
384 B
TypeScript

import { UserOutlined } from '@ant-design/icons';
import { Avatar, Badge, Space } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Space size={24}>
<Badge count={1}>
<Avatar shape="square" icon={<UserOutlined />} />
</Badge>
<Badge dot>
<Avatar shape="square" icon={<UserOutlined />} />
</Badge>
</Space>
);
export default App;