mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
21 lines
415 B
TypeScript
21 lines
415 B
TypeScript
import React from 'react';
|
|
import { ConfigProvider, Rate } from 'antd';
|
|
|
|
/** 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>
|
|
);
|