ant-design/components/radio/demo/badge.md
偏右 7d47413afa
fix: Radio Group style with Badge (#21215)
* 💄 fix Radio Group style with Badge

close #21213

*  update snapshot
2020-02-04 17:01:19 +08:00

35 lines
498 B
Markdown

---
order: 99
debug: true
title:
zh-CN: Badge style
en-US: 测试 Badge 的样式
---
## zh-CN
测试 Badge 的样式。
## en-US
Test Badge style.
```jsx
import { Radio, Badge } from 'antd';
ReactDOM.render(
<Radio.Group buttonStyle="solid">
<Badge count={1}>
<Radio.Button value={1}>
Click Me
</Radio.Button>
</Badge>
<Badge count={2}>
<Radio.Button value={2}>
Not Me
</Radio.Button>
</Badge>
</Radio.Group>
, mountNode);
```