vue-skycon

1.1.0 • Public • Published

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
  }

/vue-skycon/

    Package Sidebar

    Install

    npm i vue-skycon

    Weekly Downloads

    3

    Version

    1.1.0

    License

    Apache v2.0

    Unpacked Size

    501 kB

    Total Files

    13

    Last publish

    Collaborators

    • timleland