-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't customize style #1842
Comments
If I downgrade Please see It seems like changing styles don't work for mui-datatables v 4.0 ... |
I am also experiencing this issue, I used the style editing to add a custom button to the toolbar like this. I migrated to MUI 5 and this is the code I tried to use
|
In MUI 5, the overrides option in createTheme has been switched to components option and rather than directly overriding the components, you need to have the styleOverrides in the component you want to override. After mui 5:
For more information read the docs here |
I've converted to the new mui 5 syntax and it compiles, but I am unable to resolve the TypeScript error: How do we extend the interface for the I've tried using this documentation so far: https://mui.com/customization/theming/#custom-variables |
That's exactly what I was looking for, and it works! Thanks! |
I tryed styling the Mui dataTable like you suggested and it still isn't working Here is my code import MUIDataTable from "mui-datatables"; function Customers() { const data = [ const options = { return ( export default Customers; |
I'm running into a similar problem. It appears that I can override the Style of an existing mui Component, but the Style is not reflected in the mui-datatables. [ style overrides ] styleOverrides |
I am having the same issue. When trying to upgrade to I noticed there is now a prefix on the overridden styles |
It's fixed in the PR #1882. It just needs to get merged. |
Seems like this project is no longer actively maintained... "resolutions": {
"tss-react": "3.6.0"
},
"dependencies": {
"tss-react": "^3.6.0"
} Once the PR get merged you will be able to remove |
Expected Behavior
I'm trying to customize my table by this docs but it's no effect
I'm also doing research but can find examples of how to do custom style with older version material UI (v4) but I'm using v5
Is it work for material 5+?
Current Behavior
I use material v5 so I did their Theme import :
import { ThemeProvider } from "@mui/styles"; import { createTheme } from "@mui/material/styles";
and do my styling
My table style didn't change with no any errors
Steps to Reproduce (for bugs)
Please look at my codesandbox
https://codesandbox.io/s/mui-datatables-custom-style-o7v2s?file=/src/App.js
Your Environment
The text was updated successfully, but these errors were encountered: