mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
569 B
569 B
order | title | debug | ||||
---|---|---|---|---|---|---|
100 |
|
true |
zh-CN
设置鼠标放在状态点上时显示的文字。
en-US
The badge will display title
when hovered over, instead of count
.
import { Avatar, Badge } from 'antd';
import React from 'react';
const App: React.FC = () => (
<>
<Badge count={5} title="Custom hover text">
<Avatar shape="square" size="large" />
</Badge>
<Badge count={-5} title="Negative">
<Avatar shape="square" size="large" />
</Badge>
</>
);
export default App;