react-big-schedule
react-big-schedule copied to clipboard
Is it possible to have the antd ConfigProvider consumd / wrap?
Checklist
- [X] I've looked through the README
- [X] I've verified that I'm running react-big-schedule version 4.2.0
- [X] I've searched existing feature requests and confirmed that this request is not a duplicate
What problem does this feature solve?
I would like to use the Customize Design Token like described here: https://ant.design/docs/react/customize-theme.
Because this integration is using Ant Design already, it is probably easy to add?
Proposed Solution
This is a very basic example of how to use the theme / custom settings:
import { Scheduler, } from 'react-big-schedule';
import { ConfigProvider, theme, } from 'antd';
const App = () =>{
const { useToken } = theme;
const { token } = useToken();
return(
<ConfigProvider
theme={{
token: {
colorPrimary: token.colorPrimary,
colorPrimaryHover: token.colorPrimaryHover,
borderRadius: token.borderRadius,
},
}}>
<Scheduler {...props} />
</ConfigProvider>
)}
Benefits
The Scheduler got the same colors and gui setup as the rest of the antd application config.
Alternatives Considered
No response
Additional Information
No response
Yes great idea we will try to implement it