Skip to content

A vue component that returns greeting based on day, time and season. Ideal for welcome messages in dashboard and user profile

License

Notifications You must be signed in to change notification settings

opeolluwa/vue-greetings

Repository files navigation

Vue Greetings

A vue component that returns greeting based on day, time and season. Ideal for welcome messages in dashboard and user profile

Installation

  • Vue CLI
npm install vue-greetings
  • script tag
<script src="https://unpkg.com/vue-greetings@0.1.7/dist/vue-greetings.min.js"></script>

Basic Use

  • Register as a global component
import Vue from "vue";
import VueGreeting from "VueGreeting";
Vue.component("vue-greeting", VueGreeting);

then in vue components

<vue-greeting></vue-greeting>
  • Register as Local Component
<template>
  <div>
    <vue-greetings/>
  </div>
</template>

<script>
import VueGreetings from "vue-greetings"
export default {
  components:{
 VueGreetings
  }
}
</script>

Support me

Hi, I'm Opeoluwa! 👋

I'm a full stack developer devoted to building community project...

If you find the plugin helpful, consider buying me pizza 🍕

About

A vue component that returns greeting based on day, time and season. Ideal for welcome messages in dashboard and user profile

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published