
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
star-rate-component
Advanced tools
A simple component for VueJS. Star Rate Component is a component for VueJS for evaluating items through stars with or without punctuation. A customizable component in a simple and intuitive way with a sophisticated and good design.
Download this link.
Clone this repository
$ git clone https://github.com/thalysonalexr/star-rate-component.git
Install the latest version by npm
$ npm install --save star-rate-component@latest
Note: In your App.vue import
<template>
<v-star-rate ref="component" />
</template>
<script>
import StarRate from 'star-rate-component'
export default {
name: 'App',
components: {
// name of component star rate
'v-star-rate': StarRate
}
}
</script>
Get a value of component by $refs in data: "note"
<script>
(...)
export default {
(...)
methods: {
show () { console.log(this.$refs.component.note) }
}
}
</script>
...
In property size
<template>
<div>
<v-star-rate ref="component1" size="sm" />
<v-star-rate ref="component2" size="md" />
<v-star-rate ref="component3" size="lg" />
</div>
</template>
Property | Type | Possible values | Description | Remarks |
---|---|---|---|---|
color-box | String | colors in rgb, rgba or hexadecimal | Color for container box in component | No required, default: #fcfcfc |
color-text | String | colors in rgb, rgba or hexadecimal | Color of pontuation and title | No required |
default-color-star | String | colors in rgb, rgba or hexadecimal | Color of star deselected | No required, default: #dbdbdb |
borders | Boolean | true or false | Border in container of component (box) | No required, default: true |
shine | Boolean | true or false | Flashing stars animation | No required, default: false |
display | String | simple or normal | Simple container without punctuation and without title. Normal container with punctuation. Container full with punctuation and title | No required, default: full |
title-box | String | Anywhere value | Title in container box component | No required |
result | Array | Values type number | An array with number-type values of each star-rate-component component for generating an average in this result container | No required |
size | String | sm , md or lg | Component container size | No required, default: md |
labels | Object | Anywhere value in keys object | Title labels of each star in the assessment | No required, default: {terrible: 'terrible', bad: 'bad', good: 'good', great: 'great', perfect: 'perfect'} |
MIT License © 2018 - 2020 Made with ♥ by Thalyson Rodrigues
FAQs
A very simple component for star rating in Vue.js
The npm package star-rate-component receives a total of 5 weekly downloads. As such, star-rate-component popularity was classified as not popular.
We found that star-rate-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.