ant-design/components/badge/demo/title.md
二货机器人 f1568a656a
Badge number (#29100)
* init number component

* use single nodes

* clean up

* add current class

* clean up

* fallback

* fix: Safari render issue

* test: fix test case

* test: fix test case

* test: fix test case

* test: fix test case

* test: fix test case

* test: fix test case

* test : Update snaposhot

* test : Update cp snaposhot
2021-01-29 14:27:36 +08:00

899 B

order title debug
100
zh-CN en-US
自定义标题 Title
true

zh-CN

设置鼠标放在状态点上时显示的文字。

en-US

The badge will display title when hovered over, instead of count.

import { Badge } from 'antd';

ReactDOM.render(
  <div>
    <Badge count={5} title="Custom hover text">
      <a href="#" className="head-example" />
    </Badge>
    <Badge count={-5} title="Negative">
      <a href="#" className="head-example" />
    </Badge>
  </div>,
  mountNode,
);