react-weather-display
v1.0.1
Published
A React.js component for displaying basic weather conditions.
Maintainers
Readme
React Weather Display
This React component provides a basic display of weather information, similar to something that you might see on a weather forecast.
Live Demo
View the live demo! Note that this demo uses pre-compiled code, so it's a little messy to examine.
Installation
npm install react-weather-displayExample Usage
You can run built-in demo example via few simple steps:
git clone https://github.com/KevinMellott91/react-weather-display.gitcd react-weather-displaynpm installnpm run-script basic-example- Browse to http://localhost:3000
Component properties
width(Integer) - the desired width of the component in pixelsheight(Integer) - the desired height of the component in pixelscurrentTemperature(Integer) - actual temperature detected for the locationcurrentCondition(Enum) - actual current weather condition detected for the location- sunny, cloudy, rainy, stormy, snowy
Inspiration
The weather condition images were originally created by Jean-Jacques Rossouw, and we were inspired to incorporate them into this control.
