-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[InputUnstyled] Define ownerState and slot props' types #32491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, could we add a *.spec.ts
for the added types? Most common use-case in my opinion would be using the ownerState
itself for styling purposes.
Sure, added a test file with customized slot components. |
@michaldudak I have linked #32632 issue in the PR's description. It will be fixed by your type changes. Confirmed it with the following preview base package having the latest commit 4586cbb of this PR: https://codesandbox.io/s/mui-material-ui-forked-315rvr?file=/src/App.tsx |
Thanks, @ZeeshanTamboli! |
Explicitly defined type of InputUnstyled's ownerState and inner slots' props.
Fixes #32632