This package includes components relating to loaders in the Garden Design System.
npm install @zendeskgarden/react-loaders
# Peer Dependencies - Also Required
npm install react react-dom styled-components @zendeskgarden/react-theming
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Dots } from '@zendeskgarden/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Dots />;
</ThemeProvider>;
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Inline } from '@zendeskgarden/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Inline />
</ThemeProvider>;
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Progress } from '@zendeskgarden/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Progress value={40} />
</ThemeProvider>;
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Skeleton } from '@zendeskgarden/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Skeleton />;
</ThemeProvider>;
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Spinner } from '@zendeskgarden/react-loaders';
/**
* Place a `ThemeProvider` at the root of your React application
*/
<ThemeProvider>
<Spinner />;
</ThemeProvider>;