diff --git a/packages/x-codemod/README.md b/packages/x-codemod/README.md index 435c40333c257..f7015d57fda91 100644 --- a/packages/x-codemod/README.md +++ b/packages/x-codemod/README.md @@ -256,6 +256,26 @@ Remove the `` and move the associated `onAxisClick` ``` +#### `rename-sparkline-colors-to-color` + +Renames the `colors` prop of a `SparkLineChart` to `color` and accesses its first element. + +```diff + +``` + +If `colors` is a function, it will be wrapped in another function that returns its first element. + +```diff + fn(mode)[0] : fn[0]} + /> +``` + ### Data Grid codemods #### `preset-safe` for Data Grid v8.0.0