@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
41 lines (40 loc) • 1.15 kB
JavaScript
'use client';
import { ConfigProvider as AntdConfigProvider } from 'antd';
import { useTheme } from 'antd-style';
import { memo } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
var ConfigProvider = /*#__PURE__*/memo(function (_ref) {
var children = _ref.children;
var theme = useTheme();
return /*#__PURE__*/_jsx(AntdConfigProvider, {
theme: {
components: {
Button: {
contentFontSizeSM: 12
},
DatePicker: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
Input: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
InputNumber: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
Mentions: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
Select: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
}
}
},
children: children
});
});
export default ConfigProvider;