
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
vue-five-star-input
Advanced tools
Use this Five Star Input in your vue projects to easily get user input using stars. You can easily adjust the colour and height of the star icons to fit your project. Use the name
prop to give your input field a name for the form you put it in. It uses a hidden input field with that name and the value of the stars selected.
npm install --save vue-five-star-input
Import into your Vue project
import FiveStarInput from 'vue-five-star-input';
export default {
components: {
FiveStarInput,
}
}
Use in your project
<five-star-input name="customer-review" value="3" />
name
: The name of the input field
value
: (optional) Default value of the five stars (0-5)
required
: (optional. default=false). Boolean whether the input field is required
Style the stars using the .star
class. You can change the color and height of the icons.
<template>
<div id="app">
<p>Please rate your experience</p>
<five-star-input name="test" value="3" :required="true"/>
</div>
</template>
<script>
import FiveStarInput from 'vue-five-star-input'
export default {
components: {
FiveStarInput
}
}
</script>
<style>
...
.star {
color: goldenrod;
height: 30px;
}
</style>
FAQs
vuejs five star rating input
We found that vue-five-star-input 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.