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.
 
 

15 lines
349 B

import React from 'react';
import { HeartOutlined } from '@ant-design/icons';
import { Rate } from 'antd';
const App: React.FC = () => (
<>
<Rate character={<HeartOutlined />} allowHalf />
<br />
<Rate character="A" allowHalf style={{ fontSize: 36 }} />
<br />
<Rate character="好" allowHalf />
</>
);
export default App;