Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #21213
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
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); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters