Comments (8)
@LukasTy @iamabhshk Hey! Sorry for not providing more context. I was talking about the color of the tabs of the DateTimePicker component that we get when we have tabs: {hidden: false}
in the slotProps. I was looking to customize the the tab colors separately using sx as i have done for day
but the tabs
slotProp currently does not support sx.
I have attatched the image of my code and the tabs I am talking about.
from mui-x.
Thank you for reporting this problem! 🙏
I can confirm that there is an issue here, at a minimum this component should support className
and sx
prop.
The classes
prop is technically optional because it only contains a root
slot.
At the same time, we should add the missing classes
prop to the DateTimePickerToolbar
.
from mui-x.
Can I look into this? @LukasTy
from mui-x.
Can I look into this?
Feel free to work on it. 👍
Just to let you know, we have not groomed this issue yet, thus, the information might not be complete. 🤔
from mui-x.
I analyzed the code and here's what I found.
In the above screenshot, we are using a 'ToggleButtonGroup' component and it has a color property. In order to change the color we can replace the 'primary' with these options: ['secondary'| 'error' | 'info'| 'success'| 'warning']
For details you can refer to this link https://mui.com/material-ui/api/toggle-button-group/
I hope this is what you were seeking if my understanding to your issue was correct.
from mui-x.
@iamabhshk If we are talking about building your own "DatePicker" various subcomponents - then sure, your example makes sense, but in this case the problem is different.
The issue author is expecting the ability to provide styling props to the DateTimePickerTabs
component. 😉
from mui-x.
Ohh I see, now I am clear. Let me try it and will let you know.
from mui-x.
If you have a similar problem, please open a new issue and provide details about your specific problem.
If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.
How did we do @sanjitchh?
Your experience with our support team matters to us. If you have a moment, please share your thoughts through our brief survey.
from mui-x.
Related Issues (20)
- [charts] How do I customize edges/radius on bar charts? HOT 3
- [data grid] What's the best way to style two ranges differently to show two user presences HOT 4
- [data grid] Select all children rows in Row-Group HOT 7
- [data grid] Duplicating columns when grouping. HOT 5
- [data grid] Can't remove Tooltip when text is not truncate in DataGridPremium HOT 4
- [docs] Clarify what "experimental" and "unstable" means for the new features
- [data grid] Is there a way to determine if a table can horizontally scroll? HOT 8
- [data grid] Show All Button Return Empty Object in GridToolbarColumnsButton HOT 8
- [data grid] checkboxSelection throws error HOT 4
- [data grid] scrollToIndexes not working properly when getRowHeight set to `auto` HOT 24
- [DataGrid] `renderCell` `params.row` values on an auto-generated grouping row HOT 1
- [data grid] `renderCell params.row` values on an auto-generated grouping row HOT 3
- [pickers] Tooltip above the first selected date (to showcase minimum stay required) HOT 7
- [data grid] Actions grid column type prevents row mode change using tab navigation HOT 1
- [data grid] Issues with custom width in the grid header and cell container HOT 2
- [charts] Support popper sx props with TS HOT 3
- [data grid] using `columnGrouping` feature with `disableColumnPinning` throws an error HOT 4
- [data grid] Not able to have `headerName` for `togglePanel` HOT 5
- [TreeView] Clean the usage of the term "item" and "node" HOT 1
- [charts] Infinite height if LineChart component prop height is not set and there is an another element in the div HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.