mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
0ea9c88048
* feat: rename rate token * docs: add component-token demo
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>
|
|
);
|