1pedro / react-orbits

Beautiful Orbit Components to React

Home Page:https://1pedro.github.io/react-orbits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Orbits

Create beautiful Orbit Components with React

Orbit

NPM JavaScript Style Guide

Install

npm install --save react-orbits

Usage

import React, { Component } from 'react';

import ReactOrbits from 'react-orbits';
import 'react-orbits/dist/index.css';

class Example extends Component {
  render() {
    return (
      <ReactOrbits firstOrbitDiameter={200} marginBetweenOrbits={20}>
        <Orbit borderColor="red" spin="left">
          <Nucleus backgroundColor="red" size={20} />
          <Planet size={10} spin="left" />
        </Orbit>
        <Orbit animationSpeedInSeconds={2} borderColor="#95abd5" spin="right">
          <Planet backgroundColor="blue" size={10} />
          <Planet backgroundColor="green" shouldSpin={false} size={20} />
        </Orbit>
      </ReactOrbits>
    )
  }
}

License

MIT © 1pedro

About

Beautiful Orbit Components to React

https://1pedro.github.io/react-orbits


Languages

Language:TypeScript 94.8%Language:CSS 2.7%Language:JavaScript 2.2%Language:Shell 0.3%