Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ascii-16/react-skeleton-loader


https://github.com/ascii-16/react-skeleton-loader

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

Welcome to react-skeleton-load 👋




Version


License: MIT

> Skeleton loader for react

### 🏠 [Homepage](https://github.com/akhilchandrangit/react-skeleton-loader)

## Installation and usage

Install react-skeleton-load

```sh
npm i react-skeleton-load
```
```sh
yarn add react-skeleton-load
```

Now you can import react-skeleton-load in any of your components

```javascript
import SkeletonLoader from 'react-skeleton-load';

const Articles = () => {
return (

)
}
```

## Props
### height (number | string)
number

Required

Height of loader(px)
```javascript

```
### width (number | string)
Required

Width of loader
```javascript


```
### count (number)

Default: 1

Specifies the number of loaders to be rendered.
```javascript

```
### className (string)

Custom class name for loader element
```javascript

```

### wrapperClass (string)

Custom class name for wrapper element
```javascript

```

### color (string)

Custom color for loader in hex
```javascript

```

### style (React.CSSProperties)

Custom styles for loader element. Any of the properties in React's CSSProperties can be used.
```javascript

```

### shape ("rectangle" | "circle")

Default: "rectangle"

Defines the shape of loader.
```javascript

```

### hideAnimation (boolean)

Default: false

If set to true, the loader animation will be stopped.
```javascript

```

### hideGradient (boolean)

Default: false

If set to true, the background gradient will be removed.
```javascript

```

### borderRadius (number | string)

Changes the border radius of loader.
```javascript

```

## Author

👤 **Akhil**

* Website: https://github.com/akhilchandrangit/react-skeleton-loader
* Github: [@akhilchandrangit](https://github.com/akhilchandrangit)

## Show your support

Give a ⭐️ if this project helped you!