@zendeskgarden/react-loaders
Version:
Components relating to loaders in the Garden Design System
86 lines (65 loc) • 1.81 kB
Markdown
# /react-loaders [](https://www.npmjs.com/package/@zendeskgarden/react-loaders)
This package includes components relating to loaders in the
[Garden Design System](https://zendeskgarden.github.io/).
## Installation
```sh
npm install /react-loaders
# Peer Dependencies - Also Required
npm install react react-dom styled-components /react-theming
```
## Usage
### Dots
```jsx
import { ThemeProvider } from '/react-theming';
import { Dots } from '/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Dots />;
</ThemeProvider>;
```
### Inline
```jsx
import { ThemeProvider } from '/react-theming';
import { Inline } from '/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Inline />
</ThemeProvider>;
```
### Progress
```jsx
import { ThemeProvider } from '/react-theming';
import { Progress } from '/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Progress value={40} />
</ThemeProvider>;
```
### Skeleton
```jsx
import { ThemeProvider } from '/react-theming';
import { Skeleton } from '/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Skeleton />;
</ThemeProvider>;
```
### Spinner
```jsx
import { ThemeProvider } from '/react-theming';
import { Spinner } from '/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Spinner />;
</ThemeProvider>;
```