react-animated-climacons

1.0.0 • Public • Published

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

/react-animated-climacons/

    Package Sidebar

    Install

    npm i react-animated-climacons

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    9.81 MB

    Total Files

    8

    Last publish

    Collaborators

    • w3cj