ant-design/components/rate/demo/character.tsx
lijianan bd505a690c
demo: update Rate demo (#46891)
* feat: CP support Tag closeIcon

* fix: fix

* fix: fix
2024-01-13 17:07:42 +08:00

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;