All Projects → OYsun → Vuestar

OYsun / Vuestar

Licence: mit
✨A like button with delightful star animation powered by Vue.js

Projects that are alternatives of or similar to Vuestar

Uskin
A front-end framework aims at developing web projects based on CSS3 and provides common components.
Stars: ✭ 74 (-90.92%)
Mutual labels:  ui-design, component
Vuecirclemenu
🐰A beautiful circle menu powered by Vue.js
Stars: ✭ 1,199 (+47.12%)
Mutual labels:  ui-design, component
Realtaiizor
C# WinForm UI/UX Component Library
Stars: ✭ 109 (-86.63%)
Mutual labels:  ui-design, component
Arkit
JavaScript architecture diagrams and dependency graphs
Stars: ✭ 671 (-17.67%)
Mutual labels:  component
Squint
Provide Diagonal cut on view with awesome customization #DiagonalView
Stars: ✭ 689 (-15.46%)
Mutual labels:  ui-design
Translation
The Translation component provides tools to internationalize your application.
Stars: ✭ 6,196 (+660.25%)
Mutual labels:  component
Polyfill Php80
This component provides functions unavailable in releases prior to PHP 8.0.
Stars: ✭ 798 (-2.09%)
Mutual labels:  component
Insignia
🔖 Customizable tag input. Progressive. No non-sense!
Stars: ✭ 665 (-18.4%)
Mutual labels:  component
Orbit
React components of open-source Orbit design system by Kiwi.com
Stars: ✭ 774 (-5.03%)
Mutual labels:  component
React Native Star Rating
A React Native component for generating and displaying interactive star ratings
Stars: ✭ 724 (-11.17%)
Mutual labels:  component
Iview Weapp
一套高质量的微信小程序 UI 组件库
Stars: ✭ 6,145 (+653.99%)
Mutual labels:  ui-design
Vue Typer
Vue component that simulates a user typing, selecting, and erasing text.
Stars: ✭ 691 (-15.21%)
Mutual labels:  component
Reactprimer
React component prototyping tool that generates fully connected class component code.
Stars: ✭ 743 (-8.83%)
Mutual labels:  component
Vue Multiselect
Universal select/multiselect/tagging component for Vue.js
Stars: ✭ 5,988 (+634.72%)
Mutual labels:  component
React Native Flash Message
React Native flashbar and top notification alert utility
Stars: ✭ 789 (-3.19%)
Mutual labels:  component
Jkanban
Vanilla Javascript plugin for manage kanban boards
Stars: ✭ 664 (-18.53%)
Mutual labels:  component
Ui Libraries
A collection of UI Frameworks and their platform implementations.
Stars: ✭ 769 (-5.64%)
Mutual labels:  ui-design
String
Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way.
Stars: ✭ 709 (-13.01%)
Mutual labels:  component
Iview
A high quality UI Toolkit built on Vue.js 2.0
Stars: ✭ 23,930 (+2836.2%)
Mutual labels:  ui-design
Vue.d3.tree
Vue component to display tree based on D3.js layout.
Stars: ✭ 726 (-10.92%)
Mutual labels:  component

VueStar


查看中文文档,请移步至 这里

demo

For a better demonstration, please use the phone scan the following two-dimensional code view demo,or click this link http://web-oysun.cn/VueStar/

API

Props

Option Type Description
animate String To activate the animation of the like button
color String Activate the like button, the color of the button. (note to must be hex or RGB color code)

Slot

SlotName Description
icon Set up the like button

Detailed instructions

Props

animate

animateSpecify the like button animation, the default is no animation, you can add animation CSS class, of course, can also introduce CSS animation library, such as animate.css

color

colorActivate the button when the button color changes, the default is not. Note: The value of this parameter must be filled in hex or rgb color code, rather than the css class

Slot

icon

iconTo the slot inside fill in any content you want, it is the carrier of the like button

abuout event

Events should be bound in the slot

<template>
  <vue-star animate="animated rubberBand" color="#F05654">
    <a slot="icon" class="fa fa-heart" @click="handleClick"></a>
  </vue-star>
</template>

</script>
export default {
  methods: {
    handleClick () {
      //do something
    }
  }
}
</script>

Simple example

  <vue-star animate="yourAnimateCssClass" color="rgb(152, 138, 222)">
    <img slot="icon" src="./yourImgPlace/yourImg.png" />
  </vue-star>
  <!--use animate.css and font-awesome -->
  <vue-star animate="animated bounceIn" color="#F05654">
    <i slot="icon" class="fa fa-heart"></i>
  </vue-star>

Installation and use

npm install vue-star
  • If used as a global component
//In the project entry file
import Vue from 'vue'
import VueStar from 'vue-star'
Vue.component('VueStar', VueStar)
  • If as a local component
//In a component
import VueStar from 'vue-star'
export default {
  components: {
    VueStar
  }
}

Bug and suggestions

If you encounter problems or suggestions in the use, welcome to issues

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].