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

24 lines
286 B
Markdown

---
order: 1
title:
zh-CN: 半星
en-US: Half star
---
## zh-CN
支持选中半星。
## en-US
Support select half star.
```tsx
import { Rate } from 'antd';
import React from 'react';
const App: React.FC = () => <Rate allowHalf defaultValue={2.5} />;
export default App;
```