Skip to content

Instantly share code, notes, and snippets.

@Jantho1990
Last active August 7, 2018 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jantho1990/2be851a244a56027363480c146f28ac8 to your computer and use it in GitHub Desktop.
Save Jantho1990/2be851a244a56027363480c146f28ac8 to your computer and use it in GitHub Desktop.
StarRating Vue -- 8a
<template>
<div class="rating-inputs">
<label for="rating">Rating</label>
<input
name="rating"
type="number"
/>
</div>
</template>
<script>
export default {
name: 'RatingInputs',
props: {
rating: {
type: Number,
default: 5
},
minRating: {
type: Number,
default: 0
},
maxRating: {
type: Number,
default: 10
},
starRatio: {
type: Number,
default: 2
},
limit: {
type: Number,
default: 1000
}
}
}
</script>
<style>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment