You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
642 B

---
order: 5
title:
zh-CN: 其他字符
en-US: Other Character
---
## zh-CN
可以将星星替换为其他字符,比如字母,数字,字体图标甚至中文。
## en-US
Replace the default star to other character like alphabet, digit, iconfont or even Chinese word.
```tsx
import { HeartOutlined } from '@ant-design/icons';
import { Rate } from 'antd';
import React from 'react';
const App: React.FC = () => (
<>
<Rate character={<HeartOutlined />} allowHalf />
<br />
<Rate character="A" allowHalf style={{ fontSize: 36 }} />
<br />
<Rate character="好" allowHalf />
</>
);
export default App;
```