1.0.0 • Published 5 years ago

react-animated-climacons v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-animated-climacons

Animated SVG Climacons for React (Weather Icons)

NPM

Original SVG icons from https://github.com/noahblon/animated-climacons

Install

npm install --save react-animated-climacons

Usage

import React from 'react';

import {
  OpenWeatherMapCodes,
  Moon,
} from 'react-animated-climacons';

const App = () => {
  // Use the OpenWeatherMapCodes to map a code to a component
  const Icon = OpenWeatherMapCodes.night[801];
  return (
    <div>
      // fill and stroke props are optional
      <Moon fill="red" stroke="black" />
      <Icon fill="green" stroke="black" />
    </div>
  );
};

License

MIT © w3cj