Socket
Socket
Sign inDemoInstall

react-forecast

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-forecast

A forecast component for React


Version published
Weekly downloads
16
increased by433.33%
Maintainers
1
Install size
3.83 kB
Created
Weekly downloads
 

Readme

Source

react-forecast

A forecast component for React powered by Forecast.io.

Installation

npm install react-forecast --save

Demo

http://cezary.github.io/react-forecast/

Usage

var React = require('react');
var Forecast = require('react-forecast');

var Component = React.createClass({
  render: function() {
    return (
      <Forecast latitude={34.05} longitude={118.25} name='Los Angeles' />
    );
  }
});

latitude number, longitude number

The coordinates of the place being forecasted

name string

The name of the place

color string

Color of the temperature bars

font string

Change the font from default Helvetica

units string

Change the localization of the units ('us’ for Fahrenheit and mph, ‘uk’ for Celsius and mph, ‘ca’ for Celsius and km/h, and ‘si’ for Celsius and m/s)

Keywords

FAQs

Last updated on 04 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc