Remove a Material UI component prop

Proprietary

Removes 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-prop

Required

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=disableBackdropClick

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.