### Quick Start Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
A basic example of how to use the Audio spinner component.
```jsx
import { Audio } from 'react-loader-spinner'
function App() {
return (
)
}
```
--------------------------------
### Installation
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/intro.md
Install the react-loader-spinner package using npm or yarn.
```bash
npm install react-loader-spinner
# or
yarn add react-loader-spinner
```
--------------------------------
### Installation with yarn
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
Install the react-loader-spinner package using yarn.
```bash
yarn add react-loader-spinner
```
--------------------------------
### Puff Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/puff.mdx
An example of how to use the Puff component with live preview, editor, and error handling.
```javascript
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { Puff } from 'react-loader-spinner'
)
`}
scope={{ Puff }}
noInline={true}
>
```
--------------------------------
### Installation with npm
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
Install the react-loader-spinner package using npm.
```bash
npm install react-loader-spinner
```
--------------------------------
### Watch Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/watch.mdx
A basic example demonstrating how to use the Watch component with its primary props.
```jsx
render()
```
--------------------------------
### Custom Styling Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
Example of using the ThreeDots spinner with custom wrapper styling.
```jsx
import { ThreeDots } from 'react-loader-spinner'
;
```
--------------------------------
### Grid Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/grid.mdx
A live example demonstrating the usage of the Grid component with various props.
```javascript
render()
```
--------------------------------
### Basic Usage Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
Example of using the Oval spinner with basic props.
```jsx
import { Oval } from 'react-loader-spinner'
;
```
--------------------------------
### ProgressBar Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/progress-bar.mdx
A live example demonstrating the usage of the ProgressBar component with various props.
```javascript
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { ProgressBar } from 'react-loader-spinner'
)
`}
scope={{ ProgressBar }}
noInline={true}
>
```
--------------------------------
### RevolvingDot Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/revolving-dot.mdx
A basic example of how to use the RevolvingDot component with live editing capabilities.
```jsx
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { RevolvingDot } from 'react-loader-spinner'
)
`}
scope={{ RevolvingDot }}
noInline={true}
>
```
--------------------------------
### Audio Component Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/audio.mdx
A live, interactive example of the Audio component with customizable props.
```javascript
render()
```
--------------------------------
### Rings Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/rings.mdx
A live example demonstrating the usage of the Rings component with customizable props.
```jsx
render()
```
--------------------------------
### Comment Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/comment.mdx
This example demonstrates how to use the Comment component with various props to customize its appearance and behavior.
```jsx
render()
```
--------------------------------
### Hourglass Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/hourglass.mdx
A live example demonstrating the usage of the Hourglass component with customizable properties.
```javascript
render()
```
--------------------------------
### Conditional Rendering Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
Example of conditionally rendering the TailSpin spinner based on a loading state.
```jsx
import { TailSpin } from 'react-loader-spinner'
function MyComponent() {
const [loading, setLoading] = useState(true)
return (
)
}
```
--------------------------------
### Bars Component Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/bars.mdx
A live, interactive example of the Bars component with adjustable props.
```javascript
render()
```
--------------------------------
### TypeScript Support Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
Example demonstrating TypeScript support with common props and custom wrapper styles.
```tsx
import { Audio } from 'react-loader-spinner'
import type { CSSProperties } from 'react'
const wrapperStyle: CSSProperties = {
display: 'flex',
justifyContent: 'center',
}
```
--------------------------------
### Fidget Spinner Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/fidget-spinner.mdx
A basic example of how to use the FidgetSpinner component with live editing capabilities.
```javascript
render()
```
--------------------------------
### Radio Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/radio.mdx
A basic example of how to use the Radio component with its primary props.
```javascript
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { Radio } from 'react-loader-spinner'
)
`}
scope={{ Radio }}
noInline={true}
>
```
--------------------------------
### Circles Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/circles.mdx
A live example of the Circles loader component with customizable props.
```javascript
render()
```
--------------------------------
### Vortex Component Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/vortex.mdx
A live, interactive example of the Vortex loader spinner component, demonstrating its usage with various colors.
```javascript
render()
```
--------------------------------
### DNA Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/dna.mdx
A basic example of how to use the DNA loader spinner component with live editing capabilities.
```jsx
render()
```
--------------------------------
### Three Circles Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/three-circles.mdx
An example of how to use the ThreeCircles component with live editing capabilities.
```javascript
render()
```
--------------------------------
### Hearts Component Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/hearts.mdx
A live, interactive example of the Hearts component with customizable props.
```javascript
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { Hearts } from 'react-loader-spinner'
)
`}
scope={{ Hearts }}
noInline={true}
>
```
--------------------------------
### Three Dots Spinner Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/three-dots.mdx
An interactive example of the Three Dots spinner component using react-live.
```jsx
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { ThreeDots } from 'react-loader-spinner'
)
`}
scope={{ ThreeDots }}
noInline={true}
>
```
--------------------------------
### Rotating Triangles Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/rotating-triangles.mdx
An interactive example of the Rotating Triangles component using react-live.
```jsx
render()
```
--------------------------------
### Rotating Lines Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/rotating-lines.mdx
A live, interactive example of the Rotating Lines component using react-live.
```jsx
render()
```
--------------------------------
### Ball Triangle Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/ball-triangle.mdx
A live, interactive example of the Ball Triangle component with customizable props.
```javascript
render()
```
--------------------------------
### MagnifyingGlass Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/magnifying-glass.mdx
A live, interactive example of the MagnifyingGlass component, demonstrating its usage and appearance. Includes LiveProvider, LiveEditor, LiveError, and LivePreview from react-live.
```jsx
render()
```
--------------------------------
### Triangle Component Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/triangle.mdx
Example of how to use the Triangle component with live editing capabilities.
```javascript
render()
```
--------------------------------
### Live Example of Color Ring
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/color-ring.mdx
A live-editing example demonstrating the Color Ring component with customizable colors.
```jsx
render()
```
--------------------------------
### Circles With Bar Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/circles-with-bar.mdx
An example of how to use the CirclesWithBar component with various props to control its appearance and behavior.
```jsx
render()
```
--------------------------------
### Rotating Square Live Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/rotating-square.mdx
A live, interactive example of the Rotating Square component using react-live.
```jsx
render()
```
--------------------------------
### Falling Lines Component Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/falling-lines.mdx
An example of how to use the FallingLines component with customizable props like color, width, and visibility.
```jsx
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { FallingLines } from 'react-loader-spinner'
)
`}
scope={{ FallingLines }}
noInline={true}
>
```
--------------------------------
### Discuss Component Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/discuss.mdx
Example of how to use the Discuss component with live editing capabilities.
```jsx
render()
```
--------------------------------
### Basic LineWave Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/line-wave.mdx
A basic example of how to use the LineWave component with essential props.
```jsx
render()
```
--------------------------------
### Blocks Component Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/blocks.mdx
Example of how to use the Blocks component with live editing capabilities.
```jsx
render()
```
--------------------------------
### Mutating Dots Example
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/mutating-dots.mdx
This code snippet demonstrates how to use the MutatingDots component with its basic props for a loading indicator.
```jsx
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { MutatingDots } from 'react-loader-spinner'
)
`}
scope={{ MutatingDots }}
noInline={true}
>
```
--------------------------------
### Infinity Spin Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/infinity-spin.mdx
Example of how to use the InfinitySpin component with specified width and color.
```javascript
render()
```
--------------------------------
### Basic Oval Spinner
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/oval.mdx
A basic example of how to render the Oval spinner component with essential props.
```jsx
render()
```
--------------------------------
### CircularProgress Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/circular-progress.mdx
Example of how to use the CircularProgress component with various props.
```jsx
render()
```
--------------------------------
### LineWave with Custom Colors
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/line-wave.mdx
Examples demonstrating how to customize the colors of the LineWave component.
```jsx
```
```jsx
```
```jsx
```
--------------------------------
### TailSpin Component Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/tail-spin.mdx
Example of how to use the TailSpin component with live editing capabilities.
```javascript
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import { TailSpin } from 'react-loader-spinner'
)
`}
scope={{ TailSpin }}
noInline={true}
>
```
--------------------------------
### Customized Oval Spinner 1
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/oval.mdx
An example demonstrating customization of the Oval spinner with different stroke widths and colors.
```jsx
```
--------------------------------
### Customized Oval Spinner 3
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/oval.mdx
A third example illustrating Oval spinner customization with extreme stroke widths for visual effect.
```jsx
```
--------------------------------
### Customized Oval Spinner 2
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/oval.mdx
Another example of Oval spinner customization, showcasing varied stroke width and secondary color effects.
```jsx
```
--------------------------------
### Basic Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/intro.md
Demonstrates how to import and use the Audio component from react-loader-spinner.
```tsx
import { Audio } from 'react-loader-spinner'
export function Example() {
return (
)
}
```
--------------------------------
### Basic Whirl Component Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/experimental/whirl.mdx
Demonstrates the basic usage of the Whirl component with a 'rainbow' preset and custom speed.
```jsx
```
--------------------------------
### Tree-shaking with Direct Imports
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/README.md
Demonstrates how to import components directly for better tree-shaking, and also shows named imports.
```jsx
// Direct import (better for tree-shaking)
import { Audio } from 'react-loader-spinner/dist/esm/loader/audio'
// Or use named imports (also tree-shakeable)
import { Audio, Oval, ThreeDots } from 'react-loader-spinner'
```
--------------------------------
### Whirl Component with Different Presets
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/experimental/whirl.mdx
Shows multiple instances of the Whirl component utilizing various built-in presets with different speeds.
```jsx
```
--------------------------------
### Basic Hairball Usage
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/experimental/hairball.mdx
This code snippet demonstrates the basic usage of the Hairball component with a preset.
```jsx
import {
Hairball,
HairballPreset
} from 'react-loader-spinner'
// ... inside your component
```
--------------------------------
### Whirl Component with Custom Colors
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/experimental/whirl.mdx
Illustrates how to use the Whirl component with custom color values provided via the 'colors' prop.
```jsx
```
--------------------------------
### Custom Colors Prop Structure
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/experimental/whirl.mdx
Provides the JSX code structure for defining custom colors for the Whirl component.
```jsx
```
--------------------------------
### Color Ring Component
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/components/color-ring.mdx
A basic implementation of the Color Ring loader.
```jsx
```
--------------------------------
### Hairball with Custom Colors
Source: https://github.com/mhnpd/react-loader-spinner/blob/master/docs/docs/experimental/hairball.mdx
This code snippet shows how to use the Hairball component with custom colors.
```jsx
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.