Skip to content

timleland/vue-skycon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }

About

Easily use Skycons in your VueJs apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published