mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 08:09:13 +08:00
bd505a690c
* feat: CP support Tag closeIcon * fix: fix * fix: fix
14 lines
363 B
TypeScript
14 lines
363 B
TypeScript
import React from 'react';
|
|
import { HeartOutlined } from '@ant-design/icons';
|
|
import { Flex, Rate } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Flex vertical gap="middle">
|
|
<Rate character={<HeartOutlined />} allowHalf />
|
|
<Rate character="A" allowHalf style={{ fontSize: 36 }} />
|
|
<Rate character="好" allowHalf />
|
|
</Flex>
|
|
);
|
|
|
|
export default App;
|