Skip to content

Commit

Permalink
Update Button migration guiide
Browse files Browse the repository at this point in the history
- change isDisabled to disabled
- change colorScheme to colorPalette
  • Loading branch information
isBatak committed Mar 30, 2024
1 parent 1195171 commit 527e528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MIGRATION.md
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 527e528

Please sign in to comment.