We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28673c commit b2042f2Copy full SHA for b2042f2
www/docs/examples/Button/Loading.js
@@ -1,5 +1,6 @@
1
import { useEffect, useState } from 'react';
2
import Button from 'react-bootstrap/Button';
3
+import Spinner from 'react-bootstrap/Spinner';
4
5
function LoadingButton() {
6
const [isLoading, setLoading] = useState(false);
@@ -26,7 +27,7 @@ function LoadingButton() {
26
27
disabled={isLoading}
28
onClick={!isLoading ? handleClick : null}
29
>
- {isLoading ? 'Loading…' : 'Click to load'}
30
+ {isLoading ? <Spinner size="sm" /> : 'Click to load'}
31
</Button>
32
);
33
}
0 commit comments