JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q43368F
  • License MIT

Simplest solution for content loader in React and styled-components

Package Exports

  • styled-content-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (styled-content-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

styled-content-loader

npm npm bundle size NPM semantic-release

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

Getting Started

npm install styled-content-loader
yarn add styled-content-loader

Usage

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

const App = () => {
  return (
    <StyledContentLoader>
      <Component />
    </StyledContentLoader>
  )
}

export default App

Options

Name Description Default
backgroundColor Animation background color #fafafa
foregroundColor Animation foreground color #cccccc
isLoading Wether it will be shown or not true

Contributing

Issues and pull requests are welcome.

License

MIT