1.0.1 • Published 3 years ago

current-weather-widget v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

current-weather-widget

current weather widget

NPM JavaScript Style Guide

Install

npm install --save current-weather-widget
Variable NameDescription
location *requiredcity name
tempTypemetric or empty
lang2 Letter Language Codes(tr,en)
width *requiredauto or pixels (180px)
apiKey *requiredopenweathermap.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