mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
6a6f1b741f
* chore: update * docs: add component token demo * test: update snapshot * chore: update * test: update snapshot * feat: token * chore: update snapshot * chore: code clean * chore: code clean * chore: code clean * chore: code clean * chore: update * chore: fix lint * fix: fontsizesm --------- Co-authored-by: MadCcc <1075746765@qq.com>
33 lines
808 B
TypeScript
33 lines
808 B
TypeScript
import { NotificationOutlined } from '@ant-design/icons';
|
|
import React from 'react';
|
|
import { Avatar, Badge, ConfigProvider, Space } from 'antd';
|
|
|
|
/** Test usage. Do not use in your production. */
|
|
export default () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
Badge: {
|
|
indicatorHeight: 24,
|
|
indicatorHeightSM: 18,
|
|
dotSize: 4,
|
|
textFontWeight: 'bold',
|
|
statusSize: 8,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Space direction="vertical">
|
|
<Badge count={5}>
|
|
<Avatar shape="square" size="large" />
|
|
</Badge>
|
|
<Badge count={26} />
|
|
<Badge dot>
|
|
<NotificationOutlined />
|
|
</Badge>
|
|
<Badge status="success" text="Success" />
|
|
<Badge size="small" count={0} showZero />
|
|
</Space>
|
|
</ConfigProvider>
|
|
);
|