mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
15 lines
333 B
TypeScript
15 lines
333 B
TypeScript
|
import React from 'react';
|
||
|
import { Rate } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Rate defaultValue={3} />
|
||
|
<span className="ant-rate-text">allowClear: true</span>
|
||
|
<br />
|
||
|
<Rate allowClear={false} defaultValue={3} />
|
||
|
<span className="ant-rate-text">allowClear: false</span>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|