ant-design/components/rate/demo/clear.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

18 lines
386 B
TypeScript

import React from 'react';
import { Flex, Rate } from 'antd';
const App: React.FC = () => (
<Flex gap="middle" vertical>
<Flex gap="middle">
<Rate defaultValue={3} />
<span>allowClear: true</span>
</Flex>
<Flex gap="middle">
<Rate defaultValue={3} allowClear={false} />
<span>allowClear: false</span>
</Flex>
</Flex>
);
export default App;