mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +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;
|