Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

⭐ Rating component in Semantic-UI made with VueJS (< 1kB, blazing fast)

License

NotificationsYou must be signed in to change notification settings

vinayakkulkarni/v-rating

Repository files navigation

github releasenpm versionnpm downloads

  • Simpleui rating component for Vue made with Semantic-UI.

  • This ison GitHub so let me know if I've b0rked it somewhere, give me a star ⭐ if you like it 🍻

  • Demo here ->💯 Codesandbox Link

Requirements

✅ Install 👌

npm install v-rating// oryarn add v-rating

CDN:UNPKG |jsDelivr (available aswindow.VRating)

✅ Usage 🎓

Register the component globally:

Vue.component('Rating',require('v-rating'));

Or use locally

importRatingfrom'v-rating';

✅ Example 1 🍀

<ratingv-model="yourLocalVariable"class="huge heart"></rating>
Vue.component('example-component',{data(){return{yourLocalVariable:0,};}});

✅ 📖 Props

NameTypeRequired?DefaultDescription
typeStringNostarThe type of rating component will it be? SUI hasstars &heart.
clearableBooleanNotrueWhether the rating is clearable or not.Read the SUI Docs on this
maxStringNo5A number representing the maximum ratings that can be made available.
initialStringNo0A number representing the default rating to apply.

NPM:octocat:

NPM

License

FOSSA Status


[8]ページ先頭

©2009-2025 Movatter.jp