mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +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;
|