Overriding MuiTableCell using variants gives "Failed prop type" warning #33793
Labels
bug 🐛
Something doesn't work
component: table
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
typescript
Duplicates
Latest version
Current behavior 😯
Gettings a warning as provided below
Warning: Failed prop type: Invalid prop
variantof value
tableHeadingsupplied to
ForwardRef(TableCell), expected one of ["body","footer","head"].
Expected behavior 🤔
Should be able to override the default variants with custom TableCell variants
Steps to reproduce 🕹
Steps:
Context 🔦
Instead of the default variants props provide in TableCell component, I want to override and add multiple variants with custom properties.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: