Skip to content

Commit

Permalink
Update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw committed Apr 21, 2021
1 parent 5f9180e commit 2681c92
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/src/pages/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,28 @@ As the core components use emotion as a styled engine, the props used by emotion
+<Icon>icon-name</Icon>
```

### LoadingButton

- Rename `pending` prop to `loading`.
- Rename `pendingIndicator` prop to `loadingIndicator`.
- Rename `pendingPosition` prop to `loadingPosition`.

```diff
-<LoadingButton pending pendingIndicator="Pending..." pendingPosition="end" />
+<LoadingButton loading loadingIndicator="Pending..." loadingPosition="end" />
```

- The following keys of the `classes` prop were also renamed:

1. `pending` to `loading`
1. `pendingIndicator` to `loadingIndicator`
1. `pendingIndicatorCenter` to `loadingIndicatorCenter`
1. `pendingIndicatorStart` to `loadingIndicatorStart`
1. `pendingIndicatorEnd` to `loadingIndicatorEnd`
1. `endIconPendingEnd` to `endIconLoadingEnd`
1. `startIconPendingStart` to `startIconLoadingStart`
1. `labelPendingCenter` to `labelLoadingCenter`

### Menu

- The onE\* transition props were removed. Use TransitionProps instead.
Expand Down

0 comments on commit 2681c92

Please sign in to comment.