mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
d8d53f14cf
Co-authored-by: afc163 <afc163@gmail.com>
19 lines
346 B
TypeScript
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;
|