CustomSystemProps is not used in SystemProps anymore #35565
Labels
bug 🐛
Something doesn't work
component: Box
The React component.
package: system
Specific to @mui/system
ready to take
Help wanted. Guidance available. There is a high chance the change will be accepted
Duplicates
Latest version
Steps to reproduce 🕹
Reference to types: https://github.com/mui/material-ui/blob/master/packages/mui-system/src/Box/Box.d.ts#L144
See context below on what I suggest is missing.
Current behavior 😯
Overwriting
CustomSystemProps
doesn't do anything since it's not actually used anywhere in the code anymore.Expected behavior 🤔
CustomSystemProps
is used inSystemProps
so that augmenting it will properly work on components.Eg. doing:
would cause this prop to be available on components such as
<Typography customProp={2} />
Specifically modifying
packages/mui-system/src/Box/Box.d.ts
like this worked:Context 🔦
This issue (#25771 (comment)) originally discussed a different issue but the fix seems to have removed the usage of the
CustomSystemProps
. I would assume this was by accident since this interface is not used anywhere else and could otherwise be removed entirely if it isn't supposed to be used anymore (although I find it useful).Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: