Skip to content

Commit

Permalink
[mui-codemod] Add missing script to README (#37377)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored May 26, 2023
1 parent de97993 commit 131cecc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/mui-codemod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ npx @mui/codemod <transform> <path> --jscodeshift="--printOptions='{\"quote\":\"

### v5.0.0

### `base-remove-unstyled-suffix`

The `Unstyled` suffix has been removed from all Base UI component names, including names of types and other related identifiers.

```diff
- <Input component='a' href='url' />;
+ <Input slots={{ root: 'a' }} href='url' />;
```

```sh
npx @mui/codemod v5.0.0/base-remove-unstyled-suffix <path>
```

#### `base-remove-component-prop`

Remove `component` prop from all Base UI components by transferring its value into `slots.root`.
Expand Down

0 comments on commit 131cecc

Please sign in to comment.