[material-ui][Select] Type arguments do not constraint variant
prop accordingly
#41401
Labels
bug 🐛
Something doesn't work
component: select
This is the name of the generic UI component, not the React module!
ready to take
Help wanted. Guidance available. There is a high chance the change will be accepted
typescript
Steps to reproduce
Link to live example
Steps:
Select
componentvariant="filled"
Typescript minimal repro
Current behavior
hiddenLabel
(filled only) prop is accepted even though the outlined variant is rendered.The current type implementation is misleading.
Expected behavior
There should be a TS error if
variant="filled"
is not providedContext
No response
Your environment
npx @mui/envinfo
Search keywords: select type arguments variant
The text was updated successfully, but these errors were encountered: