react-preloading-component
v0.0.5
Published
React preloading components
Readme
React-Preloading-Component
React-Preloading-Component is a css loading animation component library to use in React projects.
Getting Started
npm install --save react-preloading-componentUsage
Here is a quick example using the <Wave /> component to get you started:
import React from 'react';
import { render } from 'react-dom';
import { Wave } from 'react-preloading-component';
const App = () => (
<div>
<Wave />
</div>
);
render(<App />, document.querySelector('#app'));Options
<Bounce />
<Bounce
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/><Eye />
<Eye
color="#FF4601" // Default hex color (string)
size="20" // Default Size in px (number)
/><Flag />
<Flag
color="#FF4601" // Default hex color (string)
size="10" // Default Size in px (number)
/><Grid />
<Grid
color="#FF4601" // Default hex color (string)
size="20" // Default Size in px (number)
/><Grow />
<Grow
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/><Lines />
<Lines
color="#FF4601" // Default hex color (string)
size="30" // Default Size in px (number)
/><Pop />
<Pop
color="#FF4601" // Default hex color (string)
size="10" // Default Size in px (number)
/><Progress />
<Progress
background="#EEEEEE" // Default hex background color (string)
color="#FF4601" // Default hex color (string)
speed="12s" // Default speed of bar (string)
/><Pulse />
<Pulse
color="#FF4601" // Default hex color (string)
size="10" // Default Size in px (number)
/><Scan />
<Scan
color="#FF4601" // Default hex color (string)
size="25" // Default Size in px (number)
/><Spinner />
<Spinner
color="#FF4601" // Default hex color (string)
secondaryColor="#E6E6E6" // Default hex color of ring (string)
size="40" // Default Size in px (number)
/><Text />
<Text
color="#FF4601" // Default hex color (string)
fontSize="1.5em" // Default font size (string)
text="Loading" // Default text (string)
/><Third />
<Third
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/><Triple />
<Triple
color="#FF4601" // Default hex color (string)
size="40" // Default Size in px (number)
/><Wave />
<Wave
color="#FF4601" // Default hex color (string)
size="12" // Default Size in px (number)
/>Contributing
- Fork the repo on GitHub
- Clone the project to your own machine
- Add your component and Update the
README.md - Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request
License
This project is licensed under the MIT License.
