Need help with styled-loaders?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

SaraVieira
212 Stars 17 Forks Other 43 Commits 2 Opened issues

Description

Loaders Built with Preact and Styled Components

Services available

!
?

Need anything else?

Contributors list

# 7,403
css3
Babel
Svelte
codesan...
14 commits
# 29,488
PHP
node
Electro...
alfred
2 commits
# 47,408
nextjs
TypeScr...
GraphQL
React N...
1 commit
# 31,900
Mongoos...
Express
cors
Sass
1 commit
# 290,291
react-a...
React
React N...
Sass
1 commit
# 14,542
GraphQL
datamap...
Scala
dao
1 commit
# 319,881
JavaScr...
CSS
Shell
github-...
1 commit

Styled Loaders

Build Status styled with prettier npm version

Demo

NPM

Loaders Built with Preact and Styled Components ready for your next project because no one deserves to have to writes loadings all the time.

If you are looking for a React version you can find one here by the awesome Sai Sandeep Vaddi

Credits and inspiration also belong heavily to the awesome work at SpinKit

As I work on more projects over time more, more loaders will be added here.

Usage

npm i styled-loaders
or
yarn add styled-loaders
import { h } from 'preact'
import { Cube } from 'styled-loaders'

const Page = ({ loading }) =>

{ loading ? : 'Your Content' }

With Props

import { h } from 'preact'
import { Block } from 'styled-loaders'

const Page = ({ loading }) =>

{ loading ? : 'Your Content' }

Loaders

  • Block Block

    • Props
      • color - Background of the spinner default is #333
      • duration - Animation duration default is 1.2s
      • size - Size of the spinner default is 40px
  • Circular Circular

    • Props
      • color - Background of the spinner default is #333
      • size - Size of the spinner default is 40px
  • Cube Cube

    • Props
      • color - Background of the spinner default is #333
      • size - Size of the spinner default is 40px
      • cubeSize - Size of the each cube default is 15
      • duration - Animation duration default is 1.2s
  • CubeGrid CubeGrid

    • Props
      • color - Background of the spinner default is #333
      • size - Size of the spinner default is 40px
  • DotScale DotScale

    • Props
      • color - Background of the spinner default is #333
      • duration - Animation duration default is 1.2s
      • size - Size of the spinner default is 40px
      • dotSize - Size of the dots default is 18px
  • Pulsate Pulsate

    • Props
      • color - Background of the spinner default is #333
      • duration - Animation duration default is 1.2s
      • size - Size of the spinner default is 40px
  • RotateScale RotateScale

    • Props
      • color - Background of the spinner default is #333
      • duration - Animation duration default is 1.2s
      • size - Size of the spinner default is 40px
  • Scale Scale

    • Props
      • color - Background of the spinner default is #333
      • duration - Animation duration default is 1.2s
      • size - Size of the spinner default is 40px
  • Stretch Stretch

    • Props
      • color - Background of the spinner default is #333
      • duration - Animation duration default is 1.2s
      • size - Size of the spinner default is 40px
      • rectWidth - Width of each rectangle default is 6px

License

MIT (2017 - Sara Vieira)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.