You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| import Atom from "react-loading-indicators/Atom";
55
55
*/
56
56
@@ -68,14 +68,14 @@ export default Loading;
68
68
</Suspense>
69
69
```
70
70
71
-
<strong><small>Side note:</small></strong> You can use <ahref="https://dev.to/smitterhane/swap-out-useeffect-with-suspense-for-data-fetching-in-react-2leb">suspense for data fetching</a> other than lazy loading.
71
+
<strong><small>Side note:</small></strong> You can use <ahref="https://dev.to/smitterhane/swap-out-useeffect-with-suspense-for-data-fetching-in-react-2leb#2-data-fetching-usecase">suspense for data fetching</a> other than lazy loading.
72
72
73
73
</details>
74
74
75
75
### Lighter build
76
76
77
-
This library is fairly small. However, you might be aiming at making the bundle size of your project to be as small as possible.<br />
78
-
You can only include a specific loading indicator you want to use:
77
+
This library is fairly small. However, you might be turbo-charged to make bundle size of your project as small as possible.<br />
78
+
You can directly include a loading indicator you want to ensure it is the only thing included from the library:
79
79
80
80
```jsx
81
81
importReactfrom"react";
@@ -109,7 +109,7 @@ Each of these components will accept the following _optional props_.
109
109
-`style` - Applies CSS styles to the loading indicator
110
110
-`text` - Displays message in the loading indicator.
111
111
-`textColor` - Sets the color of text message in the loading indicator.
112
-
-`speedPlus` - Controls speed of animation. _Negative_ values slows down. _Positive_ numbers speeds up animation.
112
+
-`speedPlus` - Controls speed of animation. _Negative_ values slows down. _Positive_ numbers speeds up animation.`0` is normal speed.
113
113
-`easing` - Controls the smoothness of the animation, altered with values such as `linear`, `ease-in`.
114
114
115
115
Some components accept a `variant` prop, Specifically `<OrbitProgress />` and `<ThreeDot />`. This lets you choose a variation of a loading indicator that you want.
@@ -118,11 +118,13 @@ Some components accept a `variant` prop, Specifically `<OrbitProgress />` and `<
118
118
| :-----: | :------: |
119
119
| variant |`string`|
120
120
121
-
See [DEMO](https://react-loading-indicators.netlify.app/) to know list of variants a loading indicator supports.
121
+
`<OrbitProgress />` has the following variants: **`dotted`**, **`bubble-dotted`**, **`disc`**, **`split-disc`**, **`track-disc`**. Defaults to `disc`.<br />
122
+
`<ThreeDot />` has the following variants: **`pulsate`**, **`windmill`**, **`bob`**, **`brick-stack`**. Defaults to `pulsate`.<br />
123
+
See [DEMO](https://react-loading-indicators.netlify.app/) to visualize.
122
124
123
125
### How to resize
124
126
125
-
You can resize loader to fit into your needs with the `size` prop that accepts predefined string input.<br>
127
+
You can resize a spinner to fit into your needs with the `size` prop that accepts predefined string input.<br>
126
128
If this is not enough, you can give a loading indicator a `fontSize` property via the `style` prop. The style prop is an object that allows you to add your own css. Including `fontSize` in the style object will _evenly_ alter the animation's size, e.g
0 commit comments