Skip to content

Commit

Permalink
Use correct loading indicator component in code example
Browse files Browse the repository at this point in the history
Use Joys `<CircularProgress />` instead of Material UIs `<SendIcon />` in the loading indicator code example.

Signed-off-by: Marco Falkenberg <[email protected]>
  • Loading branch information
mfal authored Sep 20, 2023
1 parent 69c035e commit 3cce61e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data/joy/components/button/ButtonLoadingIndicator.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as React from 'react';
import Stack from '@mui/joy/Stack';
import SendIcon from '@mui/icons-material/Send';
import CircularProgress from '@mui/joy/CircularProgress';
import Button from '@mui/joy/Button';

export default function ButtonLoadingIndicator() {
return (
<Stack spacing={2} direction="row">
<Button loading endDecorator={<SendIcon />} variant="solid">
<Button loading endDecorator={<CircularProgress />} variant="solid">
Send
</Button>
<Button loading loadingIndicator="Loading…" variant="outlined">
Expand Down

0 comments on commit 3cce61e

Please sign in to comment.