ant-design/components/radio/demo/badge.md
2022-05-23 14:37:16 +08:00

516 B

order debug title
99 true
zh-CN en-US
Badge style 测试 Badge 的样式

zh-CN

测试 Badge 的样式。

en-US

Test Badge style.

import { Badge, Radio } from 'antd';
import React from 'react';

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;