Add a Material UI component prop
ProprietaryAdds a prop to a Material UI component that does not set it, keeping a default that changed. Tags with a spread attribute are left alone.
org. openrewrite. react. mui. add-component-propRequired
The Material UI component, such as IconButton.
The prop to add.
The JSX source of the value, with its quotes or braces.
Optional
A package that re-exports Material UI, when the components are not imported from Material UI itself.
mod run . --recipe= org. openrewrite. react. mui. add-component-prop \
-P componentName= IconButton \
-P propName= size \
-P propValue= '"large"'Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.