vue-like-dislike-buttons
Installation
npm install vue-like-dislike-buttons
or
yarn add vue-like-dislike-buttons
Usage
<vue-like-dislike-buttons :likes="876547" :dislikes="4567" likeChecked />
components: VueLikeDislikeButtons
And styles:
SCSS variables:
;;;
API
like-dislike-buttons
props
-
dislike-btn-title
String (optional)default: 'I don't like it'
-
dislike-checked
Boolean (optional)default: false
-
dislikes
Number (optional) -
is-disabled
Boolean (optional)default: false
-
like-btn-title
String (optional)default: 'I like it'
-
like-checked
Boolean (optional)default: false
-
likes
Number (optional) -
millions-abbreviation
String (optional)default: 'M'
-
only-like
Boolean (optional)default: false
-
thousands-abbreviation
String (optional)default: 'K'
methods
computeNumber(value)
Project setup
yarn install
Compiles and hot-reloads for development
yarn serve
Compiles and minifies for production
yarn build
Run your tests
yarn test
Lints and fixes files
yarn lint
Customize configuration
Update the API section of README.md with generated documentation
yarn doc:build
Run style guide dev server
yarn styleguide
Generate a static HTML style guide
yarn styleguide:build
Update project version
yarn version