npm.io
1.1.0 • Published 3 years ago

vue-skycon

Licence
Apache v2.0
Version
1.1.0
Deps
0
Size
489 kB
Vulns
0
Weekly
0
Stars
3

Vue Skycons

Easily use Skycons in your VueJs apps. Example use Weather Extension and WeatherTab

DigitalOcean Referral Badge

Installation

NPM

npm i vue-skycon
YARN
yarn add vue-skycon

Installation

import Vue from 'vue'
import VueSkycons from 'vue-skycon'

Vue.use(VueSkycons)

Usage

<template>
  <div>
    <!-- General usage -->
    <skycon condition="clear-day" width="40" height="40"></skycon>
    <skycon condition="clear-night" width="40" height="40"></skycon>
    <skycon condition="partly-cloudy-day" width="40" height="40"></skycon>
    <skycon condition="partly-cloudy-night" width="40" height="40"></skycon>
    <skycon condition="cloudy" width="40" height="40"></skycon>
    <skycon condition="rain" width="40" height="40"></skycon>
    <skycon condition="sleet" width="40" height="40"></skycon>
    <skycon condition="snow" width="40" height="40"></skycon>
    <skycon condition="wind" width="40" height="40"></skycon>
    <skycon condition="fog" width="40" height="40"></skycon>
  </div>
</template>

Props

  // Icon size
  width: {
    type: Number,
    default: 64
  },

  height: {
    type: Number,
    default: 64
  },

  color: {
    type: String,
    default: 'black'
  },

  // Weather condition
  condition: {
    type: String
  }

Keywords