mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
21 lines
415 B
TypeScript
21 lines
415 B
TypeScript
|
import { ConfigProvider, Rate } from 'antd';
|
||
|
import React from 'react';
|
||
|
|
||
|
/** Test usage. Do not use in your production. */
|
||
|
export default () => (
|
||
|
<ConfigProvider
|
||
|
theme={{
|
||
|
components: {
|
||
|
Rate: {
|
||
|
starColor: 'blue',
|
||
|
starSize: 40,
|
||
|
starHoverScale: 'scale(2)',
|
||
|
starBg: 'red',
|
||
|
},
|
||
|
},
|
||
|
}}
|
||
|
>
|
||
|
<Rate defaultValue={2.5} />
|
||
|
</ConfigProvider>
|
||
|
);
|