Replace components and componentsProps with slots

Proprietary

Renames the deprecated components and componentsProps props of a Material UI component to slots and slotProps, with camelCase slot names. Tags that already set the new prop are left alone.

org.openrewrite.react.mui.replace-components-with-slots

Required

The Material UI component.

Optional

A package that re-exports Material UI.

mod run . --recipe=org.openrewrite.react.mui.replace-components-with-slots \ -P componentName=Alert

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