mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 17:59:57 +08:00
16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
|
import React from 'react';
|
||
|
import { Badge, Radio } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<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>
|
||
|
);
|
||
|
|
||
|
export default App;
|