-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs][joy-ui] Simplify the button's loading indicator demo (#39082)
- Loading branch information
1 parent
9a54ab9
commit f140184
Showing
9 changed files
with
27 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
<Button startDecorator={<Add />}>Add to cart</Button> | ||
<Button aria-label="Like" variant="outlined" color="neutral"> | ||
<ThumbUp /> | ||
</Button> | ||
<Button variant="soft" endDecorator={<KeyboardArrowRight />} color="success"> | ||
Checkout | ||
<Button endDecorator={<KeyboardArrowRight />} color="success"> | ||
Go to checkout | ||
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
docs/data/joy/components/button/ButtonLoadingIndicator.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<Button loading endDecorator={<SendIcon />} variant="solid"> | ||
Send | ||
</Button> | ||
<Button loading loadingIndicator="Loading…" variant="outlined"> | ||
Fetch data | ||
<Button loading>Default</Button> | ||
<Button loading loadingIndicator="Loading…"> | ||
Custom | ||
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
docs/data/joy/components/button/ButtonLoadingPosition.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
<Button loading loadingPosition="start" variant="outlined"> | ||
Fetch data | ||
<Button loading loadingPosition="start"> | ||
Start | ||
</Button> | ||
<Button | ||
loading | ||
loadingPosition="end" | ||
endDecorator={<SendIcon />} | ||
variant="solid" | ||
> | ||
Send | ||
<Button loading loadingPosition="end" endDecorator={<SendIcon />}> | ||
End | ||
</Button> |