material-ui
material-ui copied to clipboard
[ToggleButton] `variant` prop is missing
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Current behavior 😯
I'm trying to add a variant to the ToggleButton component on theme level and there is no such interface that I could override with module augmentation.
Expected behavior 🤔
I would expect to have a variant prop available with an extendable interface as described in the docs.
Steps to reproduce 🕹
Please check this sandbox.
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
I created a PR trying to fix the issue.
Similar to https://github.com/mui/material-ui/issues/33510
@siriwatknp Similar indeed! I see in this PR that you approached it a bit different than I did in my PR. Should I also remove the "standard" variant from the type definition and the prop types?
@michaldudak Could you check please? ☝️ I can make those changes on my PR if needed.
Duplicate of https://github.com/mui/material-ui/issues/33510, I've make the previous issue more general