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 committed Mar 30, 2024
1 parent 1195171 commit 9373518
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 @@ -504,7 +504,7 @@ Before:
After:

```tsx
<Button isDisabled colorScheme="blue">
<Button disabled colorPalette="blue">
<Spinner boxSize="1em" />
Click me
</Button>
Expand All @@ -513,7 +513,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 9373518

Please sign in to comment.