Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rfoel/styled-content-loader

The simplest solution for content loading in React and styled-components.
https://github.com/rfoel/styled-content-loader

content-loader react styled-components

Last synced: 2 months ago
JSON representation

The simplest solution for content loading in React and styled-components.

Awesome Lists containing this project

README

        

# styled-content-loader

[![npm](https://img.shields.io/npm/v/styled-content-loader)](https://www.npmjs.com/styled-content-loader)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/styled-content-loader)](https://www.npmjs.com/styled-content-loader)
[![NPM](https://img.shields.io/npm/l/styled-content-loader)](LICENSE.md)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

The simplest solution for content loading in [React](http://reactjs.org/) and [styled-components](https://styled-components.com/).

## Getting Started

```
npm install styled-components styled-content-loader
```

```
yarn add styled-components styled-content-loader
```

styled-components is a peer dependency, so you should install it yourself.

## Usage

```js
import React from 'react'
import StyledContentLoader from 'styled-content-loader'

const App = () => {
return (



)
}

export default App
```

## Props

| Name | Description | Default |
| --------------- | ------------------------------ | ------- |
| backgroundColor | Animation background color | #e6e6e6 |
| foregroundColor | Animation foreground color | #f0f0f0 |
| isLoading | Wether it will be shown or not | true |

## Contributing

Issues and pull requests are welcome.

## License

[MIT](https://github.com/rfoell/styled-content-loader/blob/main/LICENSE)