Remove a Material UI component prop
ProprietaryRemoves a prop of a Material UI component, found through the imports of the file. With value set, only a prop set to that string literal is removed.
org. openrewrite. react. mui. remove-component-propRequired
The Material UI component, such as Dialog.
The prop to remove.
Optional
Only remove the prop when it is set to this string literal.
A package that re-exports Material UI, when the components are not imported from Material UI itself.
mod run . --recipe= org. openrewrite. react. mui. remove-component-prop \
-P componentName= Dialog \
-P propName= disableBackdropClickInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.