1.0.1 • Published 3 years ago
current-weather-widget v1.0.1
current-weather-widget
current weather widget
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