ant-design/components/rate/demo/clear.tsx
JarvisArt d8d53f14cf
chore: Delete the rate useless css (#45927)
Co-authored-by: afc163 <afc163@gmail.com>
2023-11-20 10:18:05 +08:00

19 lines
346 B
TypeScript

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