Skip to content

Commit

Permalink
fix(v3): update Button migration guide (#8397)
Browse files Browse the repository at this point in the history
Update Button migration guiide

- change isDisabled to disabled
- change colorScheme to colorPalette
  • Loading branch information
isBatak authored and segunadebayo committed Mar 30, 2024
1 parent 904f76d commit f291131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ Before:
After:

```tsx
<Button isDisabled colorScheme="blue">
<Button disabled colorPalette="blue">
<Spinner boxSize="1em" />
Click me
</Button>
Expand All @@ -526,7 +526,7 @@ After:
Alternative approach to keep the content width but center the spinner:

```tsx
<Button isDisabled variant="solid" colorPalette="blue">
<Button disabled variant="solid" colorPalette="blue">
<AbsoluteCenter>
<BeatLoader size={8} color="white" />
</AbsoluteCenter>
Expand Down

0 comments on commit f291131

Please sign in to comment.