mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 22:11:37 +08:00
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
|
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;
|