Skip to content

veyselkose/current-weather-widget

Repository files navigation

current-weather-widget

current weather widget

NPM JavaScript Style Guide

Install

npm install --save current-weather-widget
Variable Name Description
location *required city name
tempType metric or empty
lang 2 Letter Language Codes(tr,en)
width *required auto or pixels (180px)
apiKey *required openweathermap.org api key

Usage

import React, { Component } from 'react'

import {WeatherCard} from 'current-weather-widget'
import 'current-weather-widget/dist/index.css'

class Example extends Component {
  render() {
    return (
      <WeatherCard
        location='Erzincan'
        tempType='metric'
        apiKey='226f8b19fdce6422e159452d02cf9240'
        lang='en'
        width='180px'
      />
    )
  }
}

License

MIT © veyselkose

About

current weather widget

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published