--- order: 6 title: zh-CN: 自定义字符 en-US: Customize character --- ## zh-CN 可以使用 `(RateProps) => ReactNode` 的方式自定义每一个字符。 ## en-US Can customize each character using `(RateProps) => ReactNode`. ```tsx import { FrownOutlined, MehOutlined, SmileOutlined } from '@ant-design/icons'; import { Rate } from 'antd'; import React from 'react'; const customIcons: Record = { 1: , 2: , 3: , 4: , 5: , }; const App: React.FC = () => ( <> index + 1} />
customIcons[index + 1]} /> ); export default App; ```