### Install react-content-loader with npm
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Use this command to install the library using npm.
```sh
npm i react-content-loader --save
```
--------------------------------
### Install Dependencies
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Install project dependencies using npm or yarn.
```bash
$ npm i
```
--------------------------------
### Install react-content-loader with yarn
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Use this command to install the library using yarn.
```sh
yarn add react-content-loader
```
--------------------------------
### Clone Repository
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Clone the react-content-loader repository to your local machine to start development.
```bash
$ git clone git@github.com:YourUsername/react-content-loader.git && cd react-content-loader
```
--------------------------------
### Install react-content-loader for React Native with npm
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Install react-content-loader and react-native-svg for React Native projects using npm.
```sh
npm i react-content-loader react-native-svg --save
```
--------------------------------
### Install react-content-loader for React Native with yarn
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Install react-content-loader and react-native-svg for React Native projects using yarn.
```sh
yarn add react-content-loader react-native-svg
```
--------------------------------
### Build Project
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Build the project for production.
```bash
$ npm run build
```
--------------------------------
### Run Storybook
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Run Storybook to view your changes and test components.
```bash
$ npm run dev
```
--------------------------------
### Responsive Loader with CSS and SVG
Source: https://context7.com/danilowoz/react-content-loader/llms.txt
Make loaders responsive by setting width to '100%' and using CSS for styling. The viewBox should be adjusted to match the aspect ratio.
```jsx
import ContentLoader, { Code } from 'react-content-loader'
// Responsive custom loader
const ResponsiveLoader = () => (
)
// Responsive preset
const ResponsiveCodeLoader = () => (
)
```
--------------------------------
### Run Tests
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Execute all tests, including type checking and unit tests for web and native platforms.
```bash
$ npm run test
```
--------------------------------
### Responsive Code Loader
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Make the Code loader responsive by setting width, height, and viewBox attributes, and applying CSS style for width: '100%'.
```jsx
import { Code } from 'react-content-loader'
const MyCodeLoader = () => (
)
```
--------------------------------
### Use Preset ContentLoaders in React
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Import and use pre-defined content loader components like Facebook's style.
```jsx
import ContentLoader, { Facebook } from 'react-content-loader'
const MyLoader = () =>
const MyFacebookLoader = () =>
```
--------------------------------
### Use Facebook Preset Loader
Source: https://context7.com/danilowoz/react-content-loader/llms.txt
The Facebook preset provides a pre-built loader that mimics Facebook's card loading skeleton. It includes a circular avatar and text lines.
```jsx
import { Facebook } from 'react-content-loader'
// Basic usage
const MyFacebookLoader = () =>
// With custom props
const CustomFacebookLoader = () => (
)
```
--------------------------------
### Use List Preset Loader
Source: https://context7.com/danilowoz/react-content-loader/llms.txt
The List preset is suitable for list-style content, providing hierarchical indentation. Custom styling can be applied using background and foreground color props.
```jsx
import { List } from 'react-content-loader'
// Basic usage
const MyListLoader = () =>
// With custom styling
const StyledListLoader = () => (
)
```
--------------------------------
### Watch Unit Tests
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Run unit tests in watch mode for continuous testing during development.
```bash
$ npm run test:watch
```
--------------------------------
### Use Instagram Preset Loader
Source: https://context7.com/danilowoz/react-content-loader/llms.txt
The Instagram preset offers a pre-built loader simulating Instagram's post loading skeleton, featuring a circular avatar, text lines, and a large image placeholder.
```jsx
import { Instagram } from 'react-content-loader'
// Basic usage
const MyInstagramLoader = () =>
// With dark theme
const DarkInstagramLoader = () => (
)
```
--------------------------------
### Use Code Preset Loader
Source: https://context7.com/danilowoz/react-content-loader/llms.txt
The Code preset is designed for code block placeholders, featuring indented lines to mimic code structure. Animation can be disabled for static display.
```jsx
import { Code } from 'react-content-loader'
// Basic usage
const MyCodeLoader = () =>
// With animation disabled
const StaticCodeLoader = () =>
```
--------------------------------
### Facebook Style Loader
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
Use the Facebook component for a Facebook-like content loader. Ensure 'react-content-loader' is imported.
```jsx
import { Facebook } from 'react-content-loader'
const MyFacebookLoader = () =>
```
--------------------------------
### React Content Loader Options
Source: https://github.com/danilowoz/react-content-loader/blob/master/README.md
This section details the available props for customizing the React Content Loader component.
```APIDOC
## React Content Loader Options
### Description
This section details the available props for customizing the React Content Loader component.
### Parameters
#### Props
- **`animate`** (boolean) - Optional - Defaults to `true`. Opt-out of animations with `false`.
- **`title`** (string) - Optional - Defaults to `Loading...`. Used to describe what element it is. Use `''` (empty string) to remove.
- **`baseUrl`** (string) - Optional - Defaults to an empty string. Required if you're using `` document `